mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Use gpg_err_set_errno to assign values to ERRNO.
This commit is contained in:
parent
492f08ff68
commit
f3839fe81d
18 changed files with 45 additions and 41 deletions
|
@ -53,7 +53,7 @@ dearmor_file( const char *fname )
|
|||
{
|
||||
iobuf_close (inp);
|
||||
inp = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
if (!inp) {
|
||||
rc = gpg_error_from_syserror ();
|
||||
|
@ -100,7 +100,7 @@ enarmor_file( const char *fname )
|
|||
{
|
||||
iobuf_close (inp);
|
||||
inp = NULL;
|
||||
errno = EPERM;
|
||||
gpg_err_set_errno (EPERM);
|
||||
}
|
||||
if (!inp) {
|
||||
rc = gpg_error_from_syserror ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue