$OpenBSD: patch-network_mail_llscan_src_llscan_c,v 1.1 2004/01/04 22:35:01 espie Exp $
--- network/mail/llscan/src/llscan.c.orig	2004-01-04 23:21:52.000000000 +0100
+++ network/mail/llscan/src/llscan.c	2004-01-04 23:23:44.000000000 +0100
@@ -21,7 +21,7 @@
 
 #include <stdio.h>
 #include <ctype.h>
-#include <varargs.h>
+#include <stdarg.h>
 #include <unistd.h>
 #include <sys/param.h>
 #include <sys/stat.h>
@@ -181,7 +181,7 @@ static int BBCompare(/* dp1, dp2 */);
 static string GetFolder(/* name */);
 static bool FolderIsBBoard(/* name */);
 static bool IsAMessage(/* name */);
-static void warning(/* msg, arg0 */);
+static void warning(string msg, ...);
 static const char *errno2str(/* err */);
 static void ErrorHelp();
 
@@ -1770,15 +1770,12 @@ string name;
 /* If the -w option is used, no warnings are generated.        */
 /***************************************************************/
 
-static void warning(va_alist) 
-va_dcl
+static void warning(string msg, ...) 
 {
-  string msg;
   va_list args;
 
   if (warnings) {
-    va_start(args);
-    msg = va_arg(args, string);
+    va_start(args, msg);
     fprintf(stderr, "llscan: Warning: ");
     vfprintf(stderr, msg, args);
     va_end(args);
