blob: e42a0ee4a5a2c7ab9a66a22ac73d292e2766be53 (
plain) (
blame)
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
|
--- screen.c.orig Thu Dec 18 01:08:35 2003
+++ screen.c Thu Dec 18 01:09:44 2003
@@ -6,7 +6,7 @@
/* update : 95/12/15 */
/*-------------------------------------------------------*/
-#include <varargs.h>
+#include <stdarg.h>
#include "bbs.h"
extern char clearbuf[];
@@ -601,13 +601,12 @@
void
-prints(va_alist)
-va_dcl
+prints(char *fmt, ...)
{
va_list args;
- char buff[512], *fmt;
+ char buff[512];
- va_start(args);
+ va_start(args, fmt);
fmt = va_arg(args, char *);
vsprintf(buff, fmt, args);
va_end(args);
|