sysklogd/test/api.c
Joachim Nilsson b1548e7c73 Add simple API test, syslog() no call to openlog()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-03 15:55:25 +01:00

15 lines
148 B
C

#include <stdlib.h>
#include "syslog.h"
int main(void)
{
char *msg = getenv("MSG");
if (!msg)
return 1;
syslog(LOG_ERR, msg);
return 0;
}