Changeset View
Changeset View
Standalone View
Standalone View
contrib/tcp_wrappers/myvsyslog.c
Show All 12 Lines | |||||
#ifdef vsyslog | #ifdef vsyslog | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include "tcpd.h" | #include "tcpd.h" | ||||
#include "mystdarg.h" | #include "mystdarg.h" | ||||
myvsyslog(severity, format, ap) | myvsyslog(int severity, char *format, va_list ap) | ||||
int severity; | |||||
char *format; | |||||
va_list ap; | |||||
{ | { | ||||
char fbuf[BUFSIZ]; | char fbuf[BUFSIZ]; | ||||
char obuf[3 * STRING_LENGTH]; | char obuf[3 * STRING_LENGTH]; | ||||
vsprintf(obuf, percent_m(fbuf, format), ap); | vsprintf(obuf, percent_m(fbuf, format), ap); | ||||
syslog(severity, "%s", obuf); | syslog(severity, "%s", obuf); | ||||
} | } | ||||
#endif | #endif |