diff options
author | Werner Koch <[email protected]> | 2004-10-14 07:20:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-10-14 07:20:54 +0000 |
commit | 299ab4e48d8b35b48af04ff574c01dad4180763b (patch) | |
tree | 476bab3a225f9b45e5a8c5688ec9c0e5bcf69a57 | |
parent | * misc.c (is_secured_filename): New. (diff) | |
download | gnupg-299ab4e48d8b35b48af04ff574c01dad4180763b.tar.gz gnupg-299ab4e48d8b35b48af04ff574c01dad4180763b.zip |
(iobuf_get_fd): Removed double check on directfp and
cats it to FILEP becuase directfp is actually a void *. Notes by
Stefan.
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) |