summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-10-14 06:48:09 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-10-14 06:48:09 +0200
commit5f1ce6cef5fe2d4e0fa973316744f9a23af6a39c (patch)
treefbdbd129be507cc01eca8b812881ab33d1c8076a /common
parentdirmngr: Fix build with no LDAP support. (diff)
downloadgnupg2-5f1ce6cef5fe2d4e0fa973316744f9a23af6a39c.tar.xz
gnupg2-5f1ce6cef5fe2d4e0fa973316744f9a23af6a39c.zip
common: Don't use FD2INT for POSIX-only code.
* common/iobuf.c [!HAVE_W32_SYSTEM] (iobuf_get_filelength): Use fp. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common')
-rw-r--r--common/iobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/iobuf.c b/common/iobuf.c
index 3ec64dc57..86bb29641 100644
--- a/common/iobuf.c
+++ b/common/iobuf.c
@@ -2564,7 +2564,7 @@ iobuf_get_filelength (iobuf_t a, int *overflow)
{
struct stat st;
- if ( !fstat (FD2INT (fp), &st) )
+ if ( !fstat (fp, &st) )
return st.st_size;
log_error("fstat() failed: %s\n", strerror(errno) );
}