aboutsummaryrefslogtreecommitdiffstats
path: root/g10/dearmor.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-05 00:36:00 +0000
committerNIIBE Yutaka <[email protected]>2023-07-05 00:36:00 +0000
commit68d3a73ea78769280650a839c11c6f34ae39dadc (patch)
tree5275580de78a019e7fc5ab28b531fba203bf5846 /g10/dearmor.c
parentdirmngr: Enable the call of ks_ldap_help_variables when USE_LDAP. (diff)
downloadgnupg-68d3a73ea78769280650a839c11c6f34ae39dadc.tar.gz
gnupg-68d3a73ea78769280650a839c11c6f34ae39dadc.zip
gpg: Use gnupg_fd_t for open_outfile.
* g10/main.h (open_outfile): Use gnupg_fd_t instead of int. * g10/openfile.c (open_outfile): Likewise. Use GNUPG_INVALID_FD. * g10/dearmor.c (dearmor_file, enarmor_file): Follow the change. * g10/encrypt.c (encrypt_simple): Likewise. * g10/export.c (do_export): Likewise. * g10/revoke.c (gen_desig_revoke, create_revocation): Likewise. * g10/sign.c (sign_file, clearsign_file, sign_symencrypt_file): Likewise. -- GnuPG-bug-id: 6580 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/dearmor.c')
-rw-r--r--g10/dearmor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/dearmor.c b/g10/dearmor.c
index c0bd9ecf6..f6bb59ef6 100644
--- a/g10/dearmor.c
+++ b/g10/dearmor.c
@@ -63,7 +63,7 @@ dearmor_file( const char *fname )
push_armor_filter ( afx, inp );
- if( (rc = open_outfile (-1, fname, 0, 0, &out)) )
+ if( (rc = open_outfile (GNUPG_INVALID_FD, fname, 0, 0, &out)) )
goto leave;
iobuf_copy (out, inp);
@@ -107,7 +107,7 @@ enarmor_file( const char *fname )
}
- if( (rc = open_outfile (-1, fname, 1, 0, &out )) )
+ if( (rc = open_outfile (GNUPG_INVALID_FD, fname, 1, 0, &out )) )
goto leave;
afx->what = 4;