Bugzilla bug 104444: change the type of the h_charkey member of

struct hashhdr from int32 to uint32.
Modified files: dbm/include/hash.h dbm/src/hash.c
This commit is contained in:
wtc%netscape.com 2001-10-13 03:16:13 +00:00
parent 566cf2aa54
commit 1944958d8e
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ typedef struct hashhdr { /* Disk resident portion */
int32 ffactor; /* Fill factor */ int32 ffactor; /* Fill factor */
int32 nkeys; /* Number of keys in hash table */ int32 nkeys; /* Number of keys in hash table */
int32 hdrpages; /* Size of table header */ int32 hdrpages; /* Size of table header */
int32 h_charkey; /* value of hash(CHARKEY) */ uint32 h_charkey; /* value of hash(CHARKEY) */
#define NCACHED 32 /* number of bit maps and spare #define NCACHED 32 /* number of bit maps and spare
* points */ * points */
int32 spares[NCACHED];/* spare pages for overflow */ int32 spares[NCACHED];/* spare pages for overflow */

View File

@ -239,7 +239,7 @@ __hash_open(const char *file, int flags, int mode, const HASHINFO *info, int dfl
if (hashp->VERSION != HASHVERSION && if (hashp->VERSION != HASHVERSION &&
hashp->VERSION != OLDHASHVERSION) hashp->VERSION != OLDHASHVERSION)
RETURN_ERROR(EFTYPE, error1); RETURN_ERROR(EFTYPE, error1);
if (hashp->hash(CHARKEY, sizeof(CHARKEY)) != (unsigned)hashp->H_CHARKEY) if (hashp->hash(CHARKEY, sizeof(CHARKEY)) != hashp->H_CHARKEY)
RETURN_ERROR(EFTYPE, error1); RETURN_ERROR(EFTYPE, error1);
if (hashp->NKEYS < 0) { if (hashp->NKEYS < 0) {
/* /*