1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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>
This commit is contained in:
NIIBE Yutaka 2022-10-14 13:48:09 +09:00
parent 7011286ce6
commit 5f1ce6cef5
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -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) );
}