summaryrefslogtreecommitdiff
blob: e3c51275f910aba85cdd9d8abc11d2a0367aa926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- src/programs/count_3phone/wrec.h.orig	2003-09-28 18:51:49.000000000 +0900
+++ src/programs/count_3phone/wrec.h	2003-09-28 18:52:23.000000000 +0900
@@ -44,7 +44,7 @@
 #define WREC_H
 
 #include "phrec.h"
-#include <varargs.h>
+#include <stdarg.h>
 
 int quit (int status, char *fmt, ...);

--- src/programs/count_3phone/quit.c.orig	2003-09-28 19:12:56.000000000 +0900
+++ src/programs/count_3phone/quit.c	2003-09-28 19:13:12.000000000 +0900
@@ -74,17 +74,14 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <varargs.h>
+#include <stdarg.h>
 
-int quit (status,fmt,va_alist)
-    int status;
-    char *fmt;
-    va_dcl
+int quit (int status,char *fmt,...)
 {
 	va_list args;
 
 	fflush(stdout);
-	va_start(args);
+	va_start(args, fmt);
 	(void) vfprintf(stderr, fmt, args);
 	va_end(args);
 	exit(status);