[comp.mail.sendmail] support/syslog.c is not portable

hubert@cac.washington.edu (Steve Hubert) (10/18/90)

DESCRIPTION:
Varargs handling is incorrect.

FIX:

/*
 * This is not portable so do it right instead.  Hubert, Aug 90.
 *
syslog(pri, fmt, args)
	int pri, args;
	char *fmt;
{
	vsyslog(pri, fmt, &args);
}
 *
 */

syslog(pri, fmt, va_alist)
	int pri;
	char *fmt;
	va_dcl
{
	va_list ap;

	va_start(ap);
	vsyslog(pri, fmt, ap);
	va_end(ap);
}