aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/iobuf.c')
-rw-r--r--common/iobuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index 87af2868f..441c69467 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -1156,10 +1156,10 @@ iobuf_open_fd_or_name (gnupg_fd_t fd, const char *fname, const char *mode)
{
iobuf_t a;
- if (fd == -1)
+ if (fd == GNUPG_INVALID_FD)
a = iobuf_open (fname);
else
- a = iobuf_fdopen_nc (fd, mode);
+ a = iobuf_fdopen_nc (FD2INT(fd), mode);
return a;
}