]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_log.c
ok, trying to work on blockheap's stuff
[irc/rqf/shadowircd.git] / src / s_log.c
index 4e81dcd69ce1ea9b14c0a62b398481e42a3bd56c..de696d3e03fecb7f73eefda2df7202ca843b98c7 100644 (file)
@@ -121,7 +121,7 @@ ilog(ilogfile dest, const char *format, ...)
        ircvsnprintf(buf, sizeof(buf), format, args);
        va_end(args);
 
-       ircsnprintf(buf2, sizeof(buf2), "%s %s\n", smalldate(), buf);
+       rb_snprintf(buf2, sizeof(buf2), "%s %s\n", smalldate(), buf);
 
        if(fputs(buf2, logfile) < 0)
        {
@@ -210,11 +210,11 @@ smalldate(void)
 {
        static char buf[MAX_DATE_STRING];
        struct tm *lt;
-       time_t ltime = CurrentTime;
+       time_t ltime = rb_current_time();
 
        lt = localtime(&ltime);
 
-       ircsnprintf(buf, sizeof(buf), "%d/%d/%d %02d.%02d",
+       rb_snprintf(buf, sizeof(buf), "%d/%d/%d %02d.%02d",
                    lt->tm_year + 1900, lt->tm_mon + 1,
                    lt->tm_mday, lt->tm_hour, lt->tm_min);