log: remove unneeded truncate_log_file().

Michael
This commit is contained in:
Michael Adam committed 2009-12-23 00:31:56 +01:00
1 parent c07cd2e44e
commit 4a11f9f08f
2 files changed
-13

No files matched your search

-12
View File
@@ -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.
*/