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:
parent
7011286ce6
commit
5f1ce6cef5
@ -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) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user