aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/iobuf.c3
-rw-r--r--common/iobuf.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index fb87ff65d..477a66874 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -1531,9 +1531,8 @@ iobuf_fdopen (int fd, const char *mode)
}
iobuf_t
-iobuf_fdopen_nc (int fd, const char *mode)
+iobuf_fdopen_nc (gnupg_fd_t fp, const char *mode)
{
- gnupg_fd_t fp = INT2FD (fd);
return do_iobuf_fdopen (fp, mode, 1);
}
diff --git a/common/iobuf.h b/common/iobuf.h
index 04e6b4421..c523b8c96 100644
--- a/common/iobuf.h
+++ b/common/iobuf.h
@@ -337,7 +337,7 @@ iobuf_t iobuf_fdopen (int fd, const char *mode);
/* Like iobuf_fdopen, but doesn't close the file descriptor when the
filter is destroyed. */
-iobuf_t iobuf_fdopen_nc (int fd, const char *mode);
+iobuf_t iobuf_fdopen_nc (gnupg_fd_t fd, const char *mode);
/* Create a filter using an existing estream. If MODE contains the
letter 'w', creates an output filter. Otherwise, creates an input