diff options
-rw-r--r-- | src/log.c | 12 | ||||
-rw-r--r-- | src/log.h | 1 |
2 files changed, 0 insertions, 13 deletions
@@ -87,18 +87,6 @@ void close_log_file (void) } /* - * Truncate log file to a zero length. - */ -void truncate_log_file (void) -{ - lseek (log_file_fd, 0, SEEK_SET); - if (ftruncate (log_file_fd, 0) != 0) { - log_message (LOG_WARNING, - "Unable to truncate log file to zero length"); - } -} - -/* * Set the log level for writing to the log file. */ void set_log_level (int level) @@ -111,7 +111,6 @@ extern int open_log_file (const char *file); extern void close_log_file (void); -extern void truncate_log_file (void); extern void log_message (int level, const char *fmt, ...); extern void set_log_level (int level); |