From 4a11f9f08f29cde2eaa6aa1ec179ab9ce69749df Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 23 Dec 2009 00:31:03 +0100 Subject: log: remove unneeded truncate_log_file(). Michael --- src/log.c | 12 ------------ src/log.h | 1 - 2 files changed, 13 deletions(-) (limited to 'src') diff --git a/src/log.c b/src/log.c index 0c55ca8..b4f073a 100644 --- a/src/log.c +++ b/src/log.c @@ -86,18 +86,6 @@ void close_log_file (void) log_file_fd = -1; } -/* - * 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. */ diff --git a/src/log.h b/src/log.h index 3a6b595..030e174 100644 --- a/src/log.h +++ b/src/log.h @@ -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); -- cgit v1.2.3