$OpenBSD: patch-network_mail_llscan_src_err_c,v 1.1 2004/01/04 22:35:01 espie Exp $
--- network/mail/llscan/src/err.c.orig	2004-01-04 23:21:14.000000000 +0100
+++ network/mail/llscan/src/err.c	2004-01-04 23:25:42.000000000 +0100
@@ -12,7 +12,7 @@
 /***************************************************************/
 
 #include <stdio.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include <errno.h>
 #include "SRCstdlib.h"
 #include "err.h"
@@ -54,17 +54,14 @@ static void preprocess(/* msg */);
 
 /* VARARGS1 */
 /* void error(msg, arg0) */
-void error(va_alist)
-va_dcl
+void error(string msg, ...)
 {
-    string msg;
     int res;
     va_list args;
 
-    va_start(args);
-    msg = va_arg(args, string);
+    va_start(args, msg);
     preprocess(msg);
-    res = (int) sprintf(errbuf, errfmt, args);
+    res = (int) vsprintf(errbuf, errfmt, args);
     if (res < 0) abort();
     va_end(args);
 
