summaryrefslogtreecommitdiff
path: root/games/bsdgames/files/patch-trek::utility.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/bsdgames/files/patch-trek::utility.c')
-rw-r--r--games/bsdgames/files/patch-trek::utility.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/games/bsdgames/files/patch-trek::utility.c b/games/bsdgames/files/patch-trek::utility.c
new file mode 100644
index 000000000000..0586c40f13a8
--- /dev/null
+++ b/games/bsdgames/files/patch-trek::utility.c
@@ -0,0 +1,28 @@
+--- trek/utility.c.orig Sat Jul 26 00:02:02 2003
++++ trek/utility.c Sat Jul 26 00:14:18 2003
+@@ -43,7 +43,7 @@
+ ** ASSORTED UTILITY ROUTINES
+ */
+ #include <stdio.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+ /*
+ ** BLOCK MOVE
+@@ -143,14 +143,12 @@
+ ** SYSTEM ERROR
+ */
+
+-syserr(fmt, va_alist)
+-const char *fmt;
+-va_dcl
++syserr(char *fmt,...)
+ {
+ va_list ap;
+ extern int errno;
+
+- va_start(ap);
++ va_start(ap,fmt);
+ printf("\n\07TREK SYSERR: ");
+ vfprintf(stdout, fmt, ap);
+ printf("\n");