diff options
author | wtc%netscape.com <devnull@localhost> | 2001-10-13 03:16:13 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-10-13 03:16:13 +0000 |
commit | bc983101fe52ec2c6a2a5fb146d21af882b622bb (patch) | |
tree | 0992504e27c1cef8e93e6e259fc9965a5b1c8006 /dbm | |
parent | 028262dbb8d974cad7a801698f93f0dc730e296c (diff) | |
download | nss-hg-bc983101fe52ec2c6a2a5fb146d21af882b622bb.tar.gz |
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
Diffstat (limited to 'dbm')
-rw-r--r-- | dbm/include/hash.h | 2 | ||||
-rw-r--r-- | dbm/src/hash.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dbm/include/hash.h b/dbm/include/hash.h index 32930f279..454a8ec42 100644 --- a/dbm/include/hash.h +++ b/dbm/include/hash.h @@ -93,7 +93,7 @@ typedef struct hashhdr { /* Disk resident portion */ int32 ffactor; /* Fill factor */ int32 nkeys; /* Number of keys in hash table */ 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 * points */ int32 spares[NCACHED];/* spare pages for overflow */ diff --git a/dbm/src/hash.c b/dbm/src/hash.c index 8be75721b..cd2e01db5 100644 --- a/dbm/src/hash.c +++ b/dbm/src/hash.c @@ -239,7 +239,7 @@ __hash_open(const char *file, int flags, int mode, const HASHINFO *info, int dfl if (hashp->VERSION != HASHVERSION && hashp->VERSION != OLDHASHVERSION) 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); if (hashp->NKEYS < 0) { /* |