aboutsummaryrefslogtreecommitdiffstats
path: root/g10/decrypt.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-08-13 14:09:15 +0000
committerNeal H. Walfield <[email protected]>2015-08-20 12:16:22 +0000
commit8402815d8e0e04a44362968f88b3d484d2395402 (patch)
treef9a5fd9e9fc6cba353219f9be8ddb530c438f4e6 /g10/decrypt.c
parentcommon/iobuf.c: Rename iobuf_flush and make it a static function. (diff)
downloadgnupg-8402815d8e0e04a44362968f88b3d484d2395402.tar.gz
gnupg-8402815d8e0e04a44362968f88b3d484d2395402.zip
common/iobuf.h: Remove iobuf_open_fd_or_name.
* common/iobuf.h (iobuf_open_fd_or_name): Remove prototype. Replace use with either iobuf_open or iobuf_fdopen_nc, as appropriate. * common/iobuf.c (iobuf_open): Remove function. -- Signed-off-by: Neal H. Walfield <[email protected]>.
Diffstat (limited to 'g10/decrypt.c')
-rw-r--r--g10/decrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/decrypt.c b/g10/decrypt.c
index fe6fd6389..068b64aed 100644
--- a/g10/decrypt.c
+++ b/g10/decrypt.c
@@ -120,7 +120,7 @@ decrypt_message_fd (ctrl_t ctrl, int input_fd, int output_fd)
pfx = new_progress_context ();
/* Open the message file. */
- fp = iobuf_open_fd_or_name (input_fd, NULL, "rb");
+ fp = iobuf_fdopen_nc (FD2INT(input_fd), "rb");
if (fp && is_secured_file (iobuf_get_fd (fp)))
{
iobuf_close (fp);