1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 22:03:14 +02:00

BUILD : 1.7.5 (423) BUGS : N/A NOTES : code tidy up fixes stuff under Freebsd

git-svn-id: svn://svn.anope.org/anope/trunk@423 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@281 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-10-25 03:31:33 +00:00
parent 593b0d1799
commit 8ca85197f7
20 changed files with 169 additions and 123 deletions
+8 -4
View File
@@ -139,7 +139,8 @@ void alog(const char *fmt, ...)
gettimeofday(&tv, NULL);
strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
s = buf + strlen(buf);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d", tv.tv_usec);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d",
(int) tv.tv_usec);
strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
} else {
#endif
@@ -197,7 +198,8 @@ void log_perror(const char *fmt, ...)
gettimeofday(&tv, NULL);
strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
s = buf + strlen(buf);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d", tv.tv_usec);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d",
(int) tv.tv_usec);
strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
} else {
#endif
@@ -244,7 +246,8 @@ void fatal(const char *fmt, ...)
gettimeofday(&tv, NULL);
strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
s = buf + strlen(buf);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d", tv.tv_usec);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d",
(int) tv.tv_usec);
strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
} else {
#endif
@@ -287,7 +290,8 @@ void fatal_perror(const char *fmt, ...)
gettimeofday(&tv, NULL);
strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
s = buf + strlen(buf);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d", tv.tv_usec);
s += snprintf(s, sizeof(buf) - (s - buf), ".%06d",
(int) tv.tv_usec);
strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
} else {
#endif