SCCS-vsn: lib/libc/gen/syslog.c 5.18
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)syslog.c 5.17 (Berkeley) %G%";
+static char sccsid[] = "@(#)syslog.c 5.18 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
/*
#endif /* LIBC_SCCS and not lint */
/*
#include <sys/syslog.h>
#include <netdb.h>
#include <strings.h>
#include <sys/syslog.h>
#include <netdb.h>
#include <strings.h>
#include <stdio.h>
#define LOGNAME "/dev/log"
#include <stdio.h>
#define LOGNAME "/dev/log"
syslog(pri, fmt, args)
int pri, args;
char *fmt;
syslog(pri, fmt, args)
int pri, args;
char *fmt;
+{
+ vsyslog(pri, fmt, &args);
+}
+
+vsyslog(pri, fmt, ap)
+ int pri;
+ char *fmt;
+ va_list ap;
{
register int cnt;
register char *p;
{
register int cnt;
register char *p;
- (void)vsprintf(p, fmt, &args);
+ (void)vsprintf(p, fmt, ap);
/* output the message to the local logger */
if (send(LogFile, tbuf, cnt = strlen(tbuf), 0) >= 0 ||
/* output the message to the local logger */
if (send(LogFile, tbuf, cnt = strlen(tbuf), 0) >= 0 ||