diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-06-21 22:41:08 +0200 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2014-07-12 13:35:45 -0400 |
commit | 43a26c6d8ea9e2a82f780171cd34365911d71228 (patch) | |
tree | 1036ef9417b8f7b6cfef254af2989e60a38be5a7 /src/plugins/kdb/db2/libdb2/hash | |
parent | bfd2a69193ddc1b324d48a7da6455cfbda54fc09 (diff) | |
download | krb5-43a26c6d8ea9e2a82f780171cd34365911d71228.zip krb5-43a26c6d8ea9e2a82f780171cd34365911d71228.tar.gz krb5-43a26c6d8ea9e2a82f780171cd34365911d71228.tar.bz2 |
Remove unused variables
[ghudson@mit.edu: squashed with similar commits]
Diffstat (limited to 'src/plugins/kdb/db2/libdb2/hash')
-rw-r--r-- | src/plugins/kdb/db2/libdb2/hash/hash.c | 9 | ||||
-rw-r--r-- | src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c | 2 |
2 files changed, 3 insertions, 8 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 diff --git a/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c b/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c index 497939d..4b95278 100644 --- a/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c +++ b/src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c @@ -194,12 +194,10 @@ __find_bigpair(hashp, cursorp, key, size) PAGE16 *pagep, *hold_pagep; db_pgno_t next_pgno; int32_t ksize; - u_int16_t bytes; int8_t *kkey; ksize = size; kkey = key; - bytes = 0; hold_pagep = NULL; /* Chances are, hashp->cpage is the base page. */ |