|
@@ -67,9 +67,6 @@ static int syslog_count = 0;
|
|
|
|
|
|
static void delete_log(logfile_t *victim);
|
|
|
static void close_log(logfile_t *victim);
|
|
|
-#if 0
|
|
|
-static int reset_log(logfile_t *lf);
|
|
|
-#endif
|
|
|
|
|
|
|
|
|
* <b>buf_len</b> character buffer in <b>buf</b>.
|
|
@@ -326,26 +323,6 @@ close_logs(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if 0
|
|
|
-
|
|
|
-
|
|
|
-void
|
|
|
-reset_logs(void)
|
|
|
-{
|
|
|
- logfile_t *lf = logfiles;
|
|
|
- while (lf) {
|
|
|
- if (reset_log(lf)) {
|
|
|
-
|
|
|
- logfile_t *victim = lf;
|
|
|
- lf = victim->next;
|
|
|
- delete_log(victim);
|
|
|
- continue;
|
|
|
- }
|
|
|
- lf = lf->next;
|
|
|
- }
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
|
|
|
* logfiles (it must be present in the list when this function is
|
|
|
* called). After this function is called, the caller shouldn't refer
|
|
@@ -384,26 +361,6 @@ close_log(logfile_t *victim)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if 0
|
|
|
-
|
|
|
- * closing and reopening the log, and maybe writing the version. For
|
|
|
- * other log types, do nothing. */
|
|
|
-static int
|
|
|
-reset_log(logfile_t *lf)
|
|
|
-{
|
|
|
- if (lf->needs_close) {
|
|
|
- if (fclose(lf->file)==EOF ||
|
|
|
- !(lf->file = fopen(lf->filename, "a"))) {
|
|
|
- return -1;
|
|
|
- } else {
|
|
|
- if (log_tor_version(lf, 1) < 0)
|
|
|
- return -1;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
|
|
|
* or higher to <b>stream</b>. */
|
|
|
void
|