summaryrefslogtreecommitdiff
blob: 420bbb61b0301249bafd29686ed874e8646e2c8d (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
--- a/libwsmake/wsUtil.cpp
+++ b/libwsmake/wsUtil.cpp
@@ -710,13 +710,13 @@
   }
 }
 
-void std::__wsmake_print_it(FILE *out, const char *output, const va_list *ap)
+void std::__wsmake_print_it(FILE *out, const char *output, va_list *ap)
 {
   if(__wsmake_quiet) return;
 
   vfprintf(out,output,*ap);
   //BV: this does not compile:  va_end((void*&)*ap);
-  va_end((char*&)*ap);
+  va_end(*ap);
 }
 
 #ifdef DEBUG
--- a/libwsmake/wsUtil.h
+++ b/libwsmake/wsUtil.h
@@ -77,7 +77,7 @@
   void __wsmake_print_error(const char *, ...);
   void __wsmake_print(const char *, ...);
   void __wsmake_print(int, const char *, ...);
-  void __wsmake_print_it(FILE *, const char *, const va_list *);
+  void __wsmake_print_it(FILE *, const char *, va_list *);
 }
 
 #endif /* __WSUTIL_H__ */