diff options
Diffstat (limited to 'src/plugins/kdb/db2/libdb2/hash/hash.c')
-rw-r--r-- | src/plugins/kdb/db2/libdb2/hash/hash.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/kdb/db2/libdb2/hash/hash.c b/src/plugins/kdb/db2/libdb2/hash/hash.c index 2343d22..2a5b4f8 100644 --- a/src/plugins/kdb/db2/libdb2/hash/hash.c +++ b/src/plugins/kdb/db2/libdb2/hash/hash.c @@ -311,9 +311,7 @@ init_hash(hashp, file, info) const HASHINFO *info; { struct stat statbuf; - int32_t nelem; - nelem = 1; hashp->hdr.nkeys = 0; hashp->hdr.lorder = DB_BYTE_ORDER; hashp->hdr.bsize = DEF_BUCKET_SIZE; @@ -420,11 +418,10 @@ hget_header(hashp, page_size) HTAB *hashp; u_int32_t page_size; { - u_int32_t num_copied, i; + u_int32_t num_copied; u_int8_t *hdr_dest; num_copied = 0; - i = 0; hdr_dest = (u_int8_t *)&hashp->hdr; @@ -452,9 +449,9 @@ hput_header(hashp) #if DB_BYTE_ORDER == DB_LITTLE_ENDIAN HASHHDR whdr; #endif - u_int32_t num_copied, i; + u_int32_t num_copied; - num_copied = i = 0; + num_copied = 0; whdrp = &hashp->hdr; #if DB_BYTE_ORDER == DB_LITTLE_ENDIAN |