projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added preliminary Symbian support.
[silc.git]
/
lib
/
silcutil
/
silclog.c
diff --git
a/lib/silcutil/silclog.c
b/lib/silcutil/silclog.c
index 02e0281c345589ded7deaa812c6a68179536d6f8..9deff33a48fecad72710977349a000d2519bdf97 100644
(file)
--- a/
lib/silcutil/silclog.c
+++ b/
lib/silcutil/silclog.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 200
5
Pekka Riikonen
+ Copyright (C) 1997 - 200
6
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-106,12
+106,13
@@
static void silc_log_checksize(SilcLog log)
/* Cycle log file */
fprintf(log->fp,
"[%s] [%s] Cycling log file, over max log size (%lu kilobytes)\n",
/* Cycle log file */
fprintf(log->fp,
"[%s] [%s] Cycling log file, over max log size (%lu kilobytes)\n",
- silc_get_time(0), log->typename, (unsigned long)log->maxsize / 1024);
+ silc_time_string(0), log->typename,
+ (unsigned long)log->maxsize / 1024);
fflush(log->fp);
fclose(log->fp);
memset(newname, 0, sizeof(newname));
fflush(log->fp);
fclose(log->fp);
memset(newname, 0, sizeof(newname));
- snprintf(newname, sizeof(newname) - 1, "%s.old", log->filename);
+ s
ilc_silc_s
nprintf(newname, sizeof(newname) - 1, "%s.old", log->filename);
unlink(newname);
rename(log->filename, newname);
unlink(newname);
rename(log->filename, newname);
@@
-195,7
+196,7
@@
void silc_log_output(SilcLogType type, char *string)
found:
if (silclog.timestamp)
found:
if (silclog.timestamp)
- fprintf(fp, "[%s] [%s] %s\n", silc_
get_time
(0), typename, string);
+ fprintf(fp, "[%s] [%s] %s\n", silc_
time_string
(0), typename, string);
else
fprintf(fp, "[%s] %s\n", typename, string);
else
fprintf(fp, "[%s] %s\n", typename, string);