From: Chris Demetriou Date: Thu, 25 Mar 2010 00:10:47 +0000 (-0700) Subject: ocale-archive differs between 32 and 64 bit platforms X-Git-Tag: fedora/glibc-2.11.90-17~2^2~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03615f7d837398790f88f7bd936a33a99e799af5;p=thirdparty%2Fglibc.git ocale-archive differs between 32 and 64 bit platforms --- diff --git a/ChangeLog b/ChangeLog index d3cd548f5b4..08db0200609 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-03-16 Chris Demetriou + + * locale/programs/simple-hash.c: Include inttypes.h. + (hashval_t): Defined to be uint32_t. + * locale/programs/simple_hash.h: Include inttypes.h. + (compute_hashval): Change return type to uint32_t. + 2010-03-24 Ulrich Drepper * sysdeps/unix/sysv/linux/getlogin_r.c: New file. diff --git a/locale/programs/simple-hash.c b/locale/programs/simple-hash.c index 5bd65f24783..b9cc237e49d 100644 --- a/locale/programs/simple-hash.c +++ b/locale/programs/simple-hash.c @@ -21,6 +21,7 @@ # include #endif +#include #include #include #include @@ -49,6 +50,7 @@ # define bcopy(s, d, n) memcpy ((d), (s), (n)) #endif +#define hashval_t uint32_t #include "hashval.h" extern void *xmalloc (size_t __n); diff --git a/locale/programs/simple-hash.h b/locale/programs/simple-hash.h index b41c233b064..e0c32bcc343 100644 --- a/locale/programs/simple-hash.h +++ b/locale/programs/simple-hash.h @@ -19,6 +19,7 @@ #ifndef _SIMPLE_HASH_H #define _SIMPLE_HASH_H +#include #include typedef struct hash_table @@ -45,7 +46,7 @@ extern int iterate_table (const hash_table *htab, void **ptr, const void **key, size_t *keylen, void **data) __THROW; -extern unsigned long int compute_hashval (const void *key, size_t keylen) +extern uint32_t compute_hashval (const void *key, size_t keylen) __THROW; extern unsigned long int next_prime (unsigned long int seed) __THROW;