/*
 * XF-SPF, basic but fully function implementation of SPF checker to be
 * used with qmail-smtpd's SMTPEXTFORK patch. Please see README for details.
 */

#include <syslog.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void loga(const char msg[400], ...)
{
 va_list ap;
    openlog("xf-spf", LOG_PID, LOG_MAIL);
    va_start(ap, msg);
    vsyslog(LOG_INFO, msg, ap);
    va_end(ap);
}


syntax highlighted by Code2HTML, v. 0.9.1