aboutsummaryrefslogtreecommitdiffstats
path: root/common/iobuf.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-10 12:24:58 +0000
committerWerner Koch <[email protected]>2010-03-10 12:24:58 +0000
commitd8b1099d01ebc1d305d47ec6dcb326980ad56396 (patch)
treecb92563d8b116872c34ad26dcdacfd02ed3da04a /common/iobuf.c
parentFix for latest libgpg-error. (diff)
downloadgnupg-d8b1099d01ebc1d305d47ec6dcb326980ad56396.tar.gz
gnupg-d8b1099d01ebc1d305d47ec6dcb326980ad56396.zip
Merged jnlib into common.
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;
}