Mercurial > notdcc
view dcclib/vsyslog.c @ 1:9b8d79ac0dc3
blindly adding debian patch for old version
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Tue, 10 Mar 2009 14:25:08 +0100 |
parents | c7f6b056b673 |
children |
line wrap: on
line source
/* compatibility hack for old systems that don't have vsyslog() */ #include "dcc_config.h" #include <stdio.h> #include <stdarg.h> #include <syslog.h> /* this is not thread safe */ void dcc_vsyslog(int pri, const char *fmt, va_list args) { char buf[512]; vsnprintf(buf, sizeof(buf), fmt, args); syslog(pri, "%s", buf); }