1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

(iobuf_get_fd): Removed double check on directfp and

cats it to FILEP becuase directfp is actually a void *.  Notes by
Stefan.
This commit is contained in:
Werner Koch 2004-10-14 07:20:54 +00:00
parent 35774ec568
commit 299ab4e48d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2004-10-14 Werner Koch <wk@g10code.com>
* iobuf.c (iobuf_get_fd): Removed double check on directfp and
cats it to FILEP becuase directfp is actually a void *. Notes by
Stefan.
2004-10-13 Werner Koch <wk@g10code.com>
* logger.c (g10_log_error_f, g10_log_fatal_f, g10_log_info_f)

View File

@ -1857,7 +1857,7 @@ int
iobuf_get_fd (IOBUF a)
{
if (a->directfp)
return a->directfp? fileno(a->directfp) : -1;
return fileno ( (FILE*)a->directfp );
for ( ; a; a = a->chain )
if (!a->chain && a->filter == file_filter)