aboutsummaryrefslogtreecommitdiff
path: root/net/rwhoisd/files/patch-common-client_msgs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rwhoisd/files/patch-common-client_msgs.c')
-rw-r--r--net/rwhoisd/files/patch-common-client_msgs.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/net/rwhoisd/files/patch-common-client_msgs.c b/net/rwhoisd/files/patch-common-client_msgs.c
new file mode 100644
index 000000000000..77a8d9a2ef23
--- /dev/null
+++ b/net/rwhoisd/files/patch-common-client_msgs.c
@@ -0,0 +1,35 @@
+--- common/client_msgs.c.orig Tue Oct 28 02:24:02 2003
++++ common/client_msgs.c Tue Oct 28 02:25:00 2003
+@@ -145,22 +145,16 @@
+ printf ("%%ok\n");
+ }
+
+-void print_response(va_alist)
+- va_dcl
++void print_response(int resp_no, char *format, ...)
+ {
+ va_list list;
+ int i;
+- int resp_no;
+- char *format;
+ FILE *fp;
+
+- va_start(list);
++ va_start(list, format);
+
+ fp = get_out_fp();
+
+- resp_no = va_arg(list, int);
+- format = va_arg(list, char *);
+-
+ for (i = 0; i < N_RESP; i++)
+ {
+ if (resp[i].resp_no == resp_no)
+@@ -179,6 +173,7 @@
+ }
+
+ vfprintf(fp, format, list);
++ va_end(list);
+
+ fprintf(fp, "\n");
+ }