diff options
Diffstat (limited to '')
-rw-r--r-- | util/ChangeLog | 6 | ||||
-rw-r--r-- | util/iobuf.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index c9d1ce3d2..a50763a6f 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,9 @@ +2004-10-14 Werner Koch <[email protected]> + + * 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 <[email protected]> * logger.c (g10_log_error_f, g10_log_fatal_f, g10_log_info_f) diff --git a/util/iobuf.c b/util/iobuf.c index 3b1fe8636..3a8f4619c 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -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) |