gpg: Minor rework for better readibility of get_best_pubkey_byname.
authorWerner Koch <wk@gnupg.org>
Fri, 28 Jul 2017 09:08:32 +0000 (11:08 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 28 Jul 2017 09:08:32 +0000 (11:08 +0200)
commit1c35e29af95c46475f297d2bd70a5f3bd49d45b1
treebef20fad593c837f59d1856c126b012f34016b60
parent6496dc1f9d2aef3bf8cf950da2434c96f7a0145c
gpg: Minor rework for better readibility of get_best_pubkey_byname.

* g10/getkey.c (get_best_pubkey_byname): Change return type to
gpg_error_t.  Use var name err instead of rc.  Move a
gpg_error_from_syserror closer to the call.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/getkey.c
g10/keydb.h