From 7d8191b83e163d76bb05e13b373638e4eeb7da95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 2 Dec 2014 20:17:04 +0100 Subject: Initial import of sane-frontends version 1.0.14-9 --- lib/vsyslog.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/vsyslog.c (limited to 'lib/vsyslog.c') diff --git a/lib/vsyslog.c b/lib/vsyslog.c new file mode 100644 index 0000000..ce86301 --- /dev/null +++ b/lib/vsyslog.c @@ -0,0 +1,17 @@ +#include "../include/sane/config.h" + +#include "stdio.h" +#include +#include + +#ifndef HAVE_VSYSLOG + +void +vsyslog(int priority, const char *format, va_list args) +{ + char buf[1024]; + vsnprintf(buf, sizeof(buf), format, args); + syslog(priority, "%s", buf); +} + +#endif /* !HAVE_VSYSLOG */ -- cgit v1.2.3