Fix build on Alpha (inconsistent prototypes for error()).

Reported by: naddy
This commit is contained in:
Stefan Eßer 2002-12-26 13:24:33 +00:00
parent 599d9545d4
commit 70173e6382
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71877
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--- include/argus_filter.h~ Fri May 31 14:11:34 2002
+++ include/argus_filter.h Wed Dec 25 22:13:46 2002
@@ -216,7 +216,13 @@
extern void *ArgusCalloc (int, int);
extern void ArgusFree (void *);
-extern void error(va_list);
+/*extern void error(va_list);*/
+#if defined(__STDC__)
+void error(const char *fmt, ...);
+#else
+void error(const char *fmt, va_dcl);
+#endif
+
extern void warning(va_list);
extern char *savestr(const char *);

17
net/argus/files/patch-ab Normal file
View File

@ -0,0 +1,17 @@
--- include/argus_filter.h~ Fri May 31 14:11:34 2002
+++ include/argus_filter.h Wed Dec 25 22:13:46 2002
@@ -216,7 +216,13 @@
extern void *ArgusCalloc (int, int);
extern void ArgusFree (void *);
-extern void error(va_list);
+/*extern void error(va_list);*/
+#if defined(__STDC__)
+void error(const char *fmt, ...);
+#else
+void error(const char *fmt, va_dcl);
+#endif
+
extern void warning(va_list);
extern char *savestr(const char *);