aboutsummaryrefslogtreecommitdiff
path: root/games/xrisk/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-11-16 00:44:30 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-11-16 00:44:30 +0000
commitf8cfa925760fa2c756574cc9abbd0d0152579292 (patch)
tree039b239bbfa586a567f87e47ac58025204a2abfe /games/xrisk/files
parent735f3e02036dfc047672cb674d621ae4667f4bd3 (diff)
Notes
Diffstat (limited to 'games/xrisk/files')
-rw-r--r--games/xrisk/files/patch-src-risklib.c65
1 files changed, 65 insertions, 0 deletions
diff --git a/games/xrisk/files/patch-src-risklib.c b/games/xrisk/files/patch-src-risklib.c
new file mode 100644
index 000000000000..8dbdd0437f39
--- /dev/null
+++ b/games/xrisk/files/patch-src-risklib.c
@@ -0,0 +1,65 @@
+--- src/risklib.c.orig Wed Oct 27 11:02:08 1993
++++ src/risklib.c Sat Nov 15 15:43:46 2003
+@@ -1,18 +1,16 @@
+ #include "xrisk.h"
+ #include "xrisklibex.h"
+-#include <varargs.h>
++#include <stdarg.h>
+ #include <ctype.h>
+
+ /* Function to jump to when writing error_msg etc., extits to unix */
+-void risk_exit(format,va_alist)
+- char *format;
+- va_dcl
++void risk_exit(char *format,...)
+ {
+ va_list ap;
+ char *args[5];
+ int argno = 0;
+
+- va_start (ap);
++ va_start (ap, format);
+ while ((argno<5)&&((args[argno++] = va_arg(ap, char *)) != LAST_ARG));
+ va_end (ap);
+ fprintf(stderr,format,args[0],args[1],args[2],args[3],args[4]);
+@@ -126,17 +124,14 @@
+ }
+
+ /* Write msg with arguments to user */
+-void write_msg_arg(player,va_alist)
+- playerp player;
+- va_dcl
++void write_msg_arg(playerp player,char *file,...)
+ {
+ va_list ap;
+- char *file;
+ char *args[5];
+ char msg[MAXLEN_MISC];
+ int argno = 0;
+- va_start (ap);
+- file = mappet(va_arg(ap, char *));
++ va_start (ap, file);
++ file = mappet(file);
+ while ((argno<5)&&((args[argno++] = va_arg(ap, char *)) != LAST_ARG));
+ va_end (ap);
+ mappargs(file,args,argno);
+@@ -176,16 +171,14 @@
+ }
+
+ /* Write a message with arguments to all players */
+-void write_msg_all_arg(va_alist)
+- va_dcl
++void write_msg_all_arg(char *file,...)
+ {
+ va_list ap;
+- char *file;
+ char *args[5];
+ char msg[MAXLEN_MISC];
+ int argno = 0;
+- va_start (ap);
+- file = mappet(va_arg(ap, char *));
++ va_start (ap, file);
++ file = mappet(file);
+ while ((argno<5)&& ((args[argno++] = va_arg(ap, char *)) != LAST_ARG) );
+ va_end (ap);
+ mappargs(file,args,argno);