mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-09 12:54:23 +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;
|
struct stat st;
|
||||||
|
|
||||||
if ( !fstat (FD2INT (fp), &st) )
|
if ( !fstat (fp, &st) )
|
||||||
return st.st_size;
|
return st.st_size;
|
||||||
log_error("fstat() failed: %s\n", strerror(errno) );
|
log_error("fstat() failed: %s\n", strerror(errno) );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user