[or-cvs] clean up the ftello call a little bit.

Roger Dingledine arma at seul.org
Sun Nov 14 09:48:57 UTC 2004


Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common

Modified Files:
	log.c 
Log Message:
clean up the ftello call a little bit.
but i'm still getting:
log.c:94: warning: implicit declaration of function `ftello'


Index: log.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/log.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- log.c	12 Nov 2004 05:05:40 -0000	1.64
+++ log.c	14 Nov 2004 09:48:54 -0000	1.65
@@ -8,6 +8,7 @@
  * \brief Functions to send messages to log files or the console.
  */
 
+#include <stdio.h>
 #include <stdarg.h>
 #include <assert.h>
 #include <stdlib.h>
@@ -89,7 +90,7 @@
   if (lf->is_temporary)
     /* If it's temporary, it isn't really a file. */
     return;
-#if HAVE_FTELLO
+#ifdef HAVE_FTELLO
   is_new = (ftello(lf->file) == 0);
 #else
   is_new = (ftell(lf->file) == 0);



More information about the tor-commits mailing list