--- sysklogd-1.4.2/syslog.c.orig +++ sysklogd-1.4.2/syslog.c @@ -89,10 +89,7 @@ } void -vsyslog(pri, fmt, ap) - int pri; - const char *fmt; - va_list ap; +__vsyslog_chk(int pri, int flag, const char *fmt, va_list ap) { register int cnt; register char *p; @@ -193,6 +190,22 @@ (void)close(fd); } +void +__syslog_chk(int pri, int flag, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + __vsyslog_chk(pri, flag, fmt, ap); + va_end(ap); +} + +void +vsyslog(int pri, const char *fmt, va_list ap) +{ + __vsyslog_chk (pri, -1, fmt, ap); +} + #ifndef TESTING static struct sockaddr SyslogAddr; /* AF_UNIX address of local logger */ #endif