gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c
authorWerner Koch <wk@gnupg.org>
Thu, 4 Jun 2015 16:08:26 +0000 (18:08 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 4 Jun 2015 16:08:26 +0000 (18:08 +0200)
commita4a15195c2a3729025a3ba3439ac8860083fceeb
tree2c88b60ff534373b33930223eedf80c1c9f7f14e
parentf170240ef735edc481f60e51527cbb5ee1acfd55
gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c

* g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
* g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
* g10/trustdb.c (read_trust_record): Ditto.
(tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
(tdb_update_ownertrust, update_min_ownertrust): Ditto.
(tdb_clear_ownertrusts, update_validity): Ditto.
(tdb_cache_disabled_value): Ditto.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/tdbdump.c
g10/tdbio.c
g10/tdbio.h
g10/trustdb.c