diff options
author | Werner Koch <[email protected]> | 2008-03-26 09:38:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2008-03-26 09:38:42 +0000 |
commit | b2dd413cfa60582ae8c6b105e3ebc4d5c5f129a5 (patch) | |
tree | af0c3a90d244b32f180c911ff24ab76f215ee4c0 /g10/tdbio.c | |
parent | Preparing a release. (diff) | |
download | gnupg-2.0.9.tar.gz gnupg-2.0.9.zip |
Last minute cleanups.gnupg-2.0.9
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r-- | g10/tdbio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c index 2429f1a5d..93628499e 100644 --- a/g10/tdbio.c +++ b/g10/tdbio.c @@ -1008,8 +1008,8 @@ drop_from_hashtable( ulong table, byte *key, int keylen, ulong recnum ) */ static int lookup_hashtable( ulong table, const byte *key, size_t keylen, - int (*cmpfnc)(void*, const TRUSTREC *), void *cmpdata, - TRUSTREC *rec ) + int (*cmpfnc)(const void*, const TRUSTREC *), + const void *cmpdata, TRUSTREC *rec ) { int rc; ulong hashrec, item; @@ -1467,10 +1467,10 @@ tdbio_new_recnum() static int -cmp_trec_fpr ( void *fpr, const TRUSTREC *rec ) +cmp_trec_fpr ( const void *fpr, const TRUSTREC *rec ) { - return rec->rectype == RECTYPE_TRUST - && !memcmp( rec->r.trust.fingerprint, fpr, 20); + return (rec->rectype == RECTYPE_TRUST + && !memcmp (rec->r.trust.fingerprint, fpr, 20)); } @@ -1481,7 +1481,7 @@ tdbio_search_trust_byfpr( const byte *fingerprint, TRUSTREC *rec ) /* locate the trust record using the hash table */ rc = lookup_hashtable( get_trusthashrec(), fingerprint, 20, - cmp_trec_fpr, (void*)fingerprint, rec ); + cmp_trec_fpr, fingerprint, rec ); return rc; } |