[tor-commits] [torsocks/master] Fix: explicitly ignore fileno return value

dgoulet at torproject.org dgoulet at torproject.org
Fri Apr 4 22:40:26 UTC 2014


commit 6297d8508aec184cba7073a0ca553e1831f7b57d
Author: David Goulet <dgoulet at efficios.com>
Date:   Wed Aug 28 19:08:14 2013 -0400

    Fix: explicitly ignore fileno return value
    
    Signed-off-by: David Goulet <dgoulet at efficios.com>
---
 src/common/log.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/log.c b/src/common/log.c
index e415721..472dc49 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -163,7 +163,7 @@ int log_init(int level, const char *filepath, enum log_time_status t_status)
 		}
 	} else {
 		/* The default output is stderr if no filepath is given. */
-		fileno(stderr);
+		(void) fileno(stderr);
 		if (errno != EBADF) {
 			logconfig.fp = stderr;
 		}





More information about the tor-commits mailing list