Brad House's fix to hish a win32 compiler warning

pull/1/head
Daniel Stenberg 18 years ago
parent 278e8f3926
commit ad734e7b2d
  1. 3
      ares_init.c

@ -1322,7 +1322,8 @@ static void init_id_key(rc4_key* key,int key_data_len)
randomize_key(key->state,key_data_len); randomize_key(key->state,key_data_len);
state = &key->state[0]; state = &key->state[0];
for(counter = 0; counter < 256; counter++) for(counter = 0; counter < 256; counter++)
state[counter] = counter; /* unnecessary AND but it keeps some compilers happier */
state[counter] = counter & 0xff;
key->x = 0; key->x = 0;
key->y = 0; key->y = 0;
index1 = 0; index1 = 0;

Loading…
Cancel
Save