diff options
author | Neal H. Walfield <[email protected]> | 2015-09-14 19:14:00 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-09-16 13:15:23 +0000 |
commit | 80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5 (patch) | |
tree | e7f0387b8aab66310ab147bad4c288afb796caf5 /g10/pkclist.c | |
parent | g10: Eliminate the redundant function get_keyblock_byfprint. (diff) | |
download | gnupg-80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5.tar.gz gnupg-80dbf8006ffe52e77930b0a6dca9d8caba8c3fd5.zip |
g10: Simplify get_seckey_byname: it was never called with NAME not NULL.
* g10/keydb.h (get_seckey_byname): Rename from this...
(get_seckey_default): ... to this. Drop the parameter name. Update
users.
* g10/getkey.c (get_seckey_byname): Rename from this...
(get_seckey_default): ... to this. Drop the parameter name. Drop the
code which assumed that NAME is not NULL.
--
Signed-off-by: Neal H. Walfield <[email protected]>.
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r-- | g10/pkclist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index 68d281284..9996d1828 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -714,7 +714,7 @@ default_recipient(void) if( !opt.def_recipient_self ) return NULL; pk = xmalloc_clear( sizeof *pk ); - i = get_seckey_byname (pk, NULL); + i = get_seckey_default (pk); if( i ) { free_public_key( pk ); return NULL; |