mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
clean up the ftello call a little bit.
but i'm still getting: log.c:94: warning: implicit declaration of function `ftello' svn:r2848
This commit is contained in:
parent
4564367b2a
commit
bd4d99b3fe
@ -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 @@ static void log_tor_version(logfile_t *lf, int reset)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user