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
36
37
38
|
--- common/log.c.orig Tue Oct 28 02:26:55 2003
+++ common/log.c Tue Oct 28 02:28:25 2003
@@ -139,15 +139,12 @@
/* log_error: prints a error message to the console. This is intended
for server side errors only. */
void
-log_error(va_alist)
- va_dcl
+log_error(char *format, ...)
{
va_list list;
- char *format;
char err_buf[MAX_LINE];
- va_start(list);
- format = va_arg(list, char *);
+ va_start(list, format);
#ifdef HAVE_VSNPRINTF
vsnprintf(err_buf, sizeof(err_buf), format, list);
@@ -164,15 +161,12 @@
/* log_warning: prints a warning message to the console. This is intended
for server side warnings only. */
void
-log_warning(va_alist)
- va_dcl
+log_warning(char *format, ...)
{
va_list list;
- char *format;
char err_buf[MAX_LINE];
- va_start(list);
- format = va_arg(list, char *);
+ va_start(list, format);
#ifdef HAVE_VSNPRINTF
vsnprintf(err_buf, sizeof(err_buf), format, list);
|