From 299ab4e48d8b35b48af04ff574c01dad4180763b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 14 Oct 2004 07:20:54 +0000 Subject: [PATCH] (iobuf_get_fd): Removed double check on directfp and cats it to FILEP becuase directfp is actually a void *. Notes by Stefan. --- util/ChangeLog | 6 ++++++ util/iobuf.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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 * 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)