X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fhash.c;h=80922d0faebc726cc975e57d5d5f068789885be0;hb=a9a2b34b052cfa903462124f59fbfeed7eaf374b;hp=f8b3c11faa4242d463c2ddef7d35fb5988b6872f;hpb=76780021d822779f839bbf85883292e15eb3f587;p=wget diff --git a/src/hash.c b/src/hash.c index f8b3c11f..80922d0f 100644 --- a/src/hash.c +++ b/src/hash.c @@ -31,8 +31,6 @@ as that of the covered work. */ /* With -DSTANDALONE, this file can be compiled outside Wget source tree. To test, also use -DTEST. */ -#define USE_GNULIB_ALLOC - #ifndef STANDALONE # include "wget.h" #endif @@ -57,8 +55,8 @@ as that of the covered work. */ # endif # include # define c_tolower(x) tolower ((unsigned char) (x)) -# if __STDC_VERSION__ >= 199901L -# include /* for uintptr_t */ +# ifdef HAVE_STDINT_H +# include # else typedef unsigned long uintptr_t; # endif @@ -228,7 +226,7 @@ prime_size (int size, int *prime_offset) 243370577, 316381771, 411296309, 534685237, 695090819, 903618083, 1174703521, 1527114613, 1837299131, 2147483647 }; - int i; + size_t i; for (i = *prime_offset; i < countof (primes); i++) if (primes[i] >= size)