summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-23 00:31:03 +0100
committerMichael Adam <obnox@samba.org>2009-12-23 00:31:56 +0100
commit4a11f9f08f29cde2eaa6aa1ec179ab9ce69749df (patch)
tree3711218d62468d35269ba42515b25d78a88efbf4 /src/log.c
parentc07cd2e44e40196fe810812cfda352fd56c991df (diff)
downloadtinyproxy-4a11f9f08f29cde2eaa6aa1ec179ab9ce69749df.tar.gz
tinyproxy-4a11f9f08f29cde2eaa6aa1ec179ab9ce69749df.zip
log: remove unneeded truncate_log_file().
Michael
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/log.c b/src/log.c
index 0c55ca8..b4f073a 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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)