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
35
|
$NetBSD: patch-as,v 1.1 2004/05/03 23:30:00 wiz Exp $
--- libhtmlw/HTML-PSformat.c.orig 1996-06-27 01:36:53.000000000 +0200
+++ libhtmlw/HTML-PSformat.c
@@ -59,9 +59,9 @@
*
*/
#include "../config.h"
-#include <varargs.h>
#include <string.h>
+#include <stdarg.h>
#include <stdio.h>
#include <ctype.h>
#include <math.h>
@@ -229,9 +229,7 @@ GetDpi(HTMLWidget hw)
*
*/
static int
-PSprintf(format, va_alist)
- char* format;
- va_dcl
+PSprintf(char *format, ...)
{
int len;
char *s;
@@ -251,7 +249,7 @@ PSprintf(format, va_alist)
}
PS_string = s;
}
- va_start(args);
+ va_start(args, format);
len = vsprintf(PS_string+PS_len, format, args);
/* this is a hack to make it work on systems were vsprintf(s,...)
* returns s, instead of the len.
|