diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2023-07-05 06:11:16 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2023-07-05 06:11:16 +0200 |
commit | 577baf4af3009071ff9f4909f1f40a74ab735d68 (patch) | |
tree | 9b6977fd3e3de5dcc8619dfa1ff642619137e1ae /g10/openfile.c | |
parent | gpg: Use gnupg_fd_t for decryption and sign. (diff) | |
download | gnupg2-577baf4af3009071ff9f4909f1f40a74ab735d68.tar.xz gnupg2-577baf4af3009071ff9f4909f1f40a74ab735d68.zip |
gpg: Format the value of type gnupg_fd_t by casting to int.
* g10/openfile.c (open_outfile): Cast to int.
* g10/encrypt.c (encrypt_crypt): Ditto.
* g10/decrypt.c (decrypt_message_fd): Ditto.
--
GnuPG-bug-id: 6580
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/openfile.c')
-rw-r--r-- | g10/openfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/openfile.c b/g10/openfile.c index 810811c64..80c33f094 100644 --- a/g10/openfile.c +++ b/g10/openfile.c @@ -193,12 +193,12 @@ open_outfile (gnupg_fd_t out_fd, const char *iname, int mode, if (!*a) { rc = gpg_error_from_syserror (); - snprintf (xname, sizeof xname, "[fd %d]", out_fd); + snprintf (xname, sizeof xname, "[fd %d]", (int)(intptr_t)out_fd); log_error (_("can't open '%s': %s\n"), xname, gpg_strerror (rc)); } else if (opt.verbose) { - snprintf (xname, sizeof xname, "[fd %d]", out_fd); + snprintf (xname, sizeof xname, "[fd %d]", (int)(intptr_t)out_fd); log_info (_("writing to '%s'\n"), xname); } } |