Logo Search packages:      
Sourcecode: dcc version File versions  Download package

vsyslog.c

/* 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);
}

Generated by  Doxygen 1.6.0   Back to index