mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
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:
parent
0b4ebc398c
commit
3de5ef7598
@ -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;
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user