cleanup: Fix confusion between gpg_error_t and gpg_err_code_t.

* dirmngr/crlcache.c (hash_dbfile): Use gpg_error_t for ERR.
* kbx/keybox-update.c (keybox_set_flags): Call
gpg_err_code_from_syserror.
This commit is contained in:
NIIBE Yutaka 2015-10-14 18:57:26 +09:00
parent 0b4ebc398c
commit 3de5ef7598
2 changed files with 2 additions and 2 deletions

View File

@ -994,7 +994,7 @@ hash_dbfile (const char *fname, unsigned char *md5buffer)
char *buffer;
size_t n;
gcry_md_hd_t md5;
gpg_err_code_t err;
gpg_error_t err;
buffer = xtrymalloc (65536);
fp = buffer? es_fopen (fname, "rb") : NULL;

View File

@ -603,7 +603,7 @@ keybox_set_flags (KEYBOX_HANDLE hd, int what, int idx, unsigned int value)
ec = 0;
if (fseeko (fp, off, SEEK_SET))
ec = gpg_error_from_syserror ();
ec = gpg_err_code_from_syserror ();
else
{
unsigned char tmp[4];