mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Re-indentation of keydb.c and error code changes.
Returning -1 as an error code is not very clean given that gpg error has more descriptive error codes. Thus we now return GPG_ERR_NOT_FOUND for all search operations and adjusted all callers.
This commit is contained in:
parent
740629de00
commit
afe5c1a370
8 changed files with 383 additions and 328 deletions
|
@ -1236,8 +1236,8 @@ keyidlist(strlist_t users,KEYDB_SEARCH_DESC **klist,int *count,int fakev3)
|
|||
}
|
||||
}
|
||||
|
||||
if(rc==-1)
|
||||
rc=0;
|
||||
if (gpg_err_code (rc) == GPG_ERR_NOT_FOUND)
|
||||
rc = 0;
|
||||
|
||||
leave:
|
||||
if(rc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue