You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-misc/wsmake/files/wsmake-0.6.4-fix-const-va_l...

30 lines
781 B

--- 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__ */