blob: a3209cb2a4c5c19135003fc23b1a819c769d8fd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* -*- mode: c; c-file-style: "openbsd" -*- */
#include <stdlib.h>
#include <syslog.h>
#include "compat.h"
/* vsyslog() doesn't exist on HP-UX */
void
vsyslog(int facility, const char *format, va_list ap)
{
char *msg = NULL;
if (vasprintf(&msg, format, ap) == -1) {
return;
}
syslog(facility, "%s", msg);
free(msg);
}
|