aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encrypt.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-05 04:11:16 +0000
committerNIIBE Yutaka <[email protected]>2023-07-05 04:11:16 +0000
commit577baf4af3009071ff9f4909f1f40a74ab735d68 (patch)
tree9b6977fd3e3de5dcc8619dfa1ff642619137e1ae /g10/encrypt.c
parentgpg: Use gnupg_fd_t for decryption and sign. (diff)
downloadgnupg-577baf4af3009071ff9f4909f1f40a74ab735d68.tar.gz
gnupg-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 <[email protected]>
Diffstat (limited to 'g10/encrypt.c')
-rw-r--r--g10/encrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c
index 42ee0b773..a5b020736 100644
--- a/g10/encrypt.c
+++ b/g10/encrypt.c
@@ -842,7 +842,7 @@ encrypt_crypt (ctrl_t ctrl, gnupg_fd_t filefd, const char *filename,
rc = gpg_error_from_syserror ();
if (filefd != GNUPG_INVALID_FD)
- snprintf (xname, sizeof xname, "[fd %d]", filefd);
+ snprintf (xname, sizeof xname, "[fd %d]", (int)(intptr_t)filefd);
else if (!filename)
strcpy (xname, "[stdin]");
else