mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <gniibe@fsij.org>
This commit is contained in:
parent
dc13361524
commit
68d3a73ea7
7 changed files with 14 additions and 13 deletions
|
@ -333,7 +333,7 @@ gen_desig_revoke (ctrl_t ctrl, const char *uname, strlist_t locusr)
|
|||
if( !opt.armor )
|
||||
tty_printf(_("ASCII armored output forced.\n"));
|
||||
|
||||
if( (rc = open_outfile (-1, NULL, 0, 1, &out )) )
|
||||
if( (rc = open_outfile (GNUPG_INVALID_FD, NULL, 0, 1, &out )) )
|
||||
goto leave;
|
||||
|
||||
afx->what = 1;
|
||||
|
@ -464,7 +464,7 @@ create_revocation (ctrl_t ctrl,
|
|||
|
||||
afx = new_armor_context ();
|
||||
|
||||
if ((rc = open_outfile (-1, filename, suffix, 1, &out)))
|
||||
if ((rc = open_outfile (GNUPG_INVALID_FD, filename, suffix, 1, &out)))
|
||||
goto leave;
|
||||
|
||||
if (leadintext )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue