summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vfwprintf.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-08-17 09:53:53 +0000
committerchristos <christos@NetBSD.org>2011-08-17 09:53:53 +0000
commit2ee92a438574ef0b2ec799a52eaa8220b92b9360 (patch)
treeaab44170d0f925f613851451612ec6ab6f2a0104 /lib/libc/stdio/vfwprintf.c
parent934c24f50893483c58fde1d9c35ed2ed550abd57 (diff)
fix the rest of libc mi gcc-4.5 hacks. portmasters should fix the md ones.
Diffstat (limited to 'lib/libc/stdio/vfwprintf.c')
-rw-r--r--lib/libc/stdio/vfwprintf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c
index 143afc03ab7..806e60ace63 100644
--- a/lib/libc/stdio/vfwprintf.c
+++ b/lib/libc/stdio/vfwprintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: vfwprintf.c,v 1.23 2010/12/16 17:42:27 wiz Exp $ */
+/* $NetBSD: vfwprintf.c,v 1.24 2011/08/17 09:53:54 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
static char sccsid[] = "@(#)vfprintf.c 8.1 (Berkeley) 6/4/93";
__FBSDID("$FreeBSD: src/lib/libc/stdio/vfwprintf.c,v 1.27 2007/01/09 00:28:08 imp Exp $");
#else
-__RCSID("$NetBSD: vfwprintf.c,v 1.23 2010/12/16 17:42:27 wiz Exp $");
+__RCSID("$NetBSD: vfwprintf.c,v 1.24 2011/08/17 09:53:54 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -494,7 +494,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
if (prec < 0) {
p = wcsarg;
mbs = initial;
- nbytes = wcsrtombs(NULL, (const wchar_t **)&p, 0, &mbs);
+ nbytes = wcsrtombs(NULL, (void *)&p, 0, &mbs);
if (nbytes == (size_t)-1)
return (NULL);
} else {
@@ -524,7 +524,7 @@ __wcsconv(wchar_t *wcsarg, int prec)
/* Fill the output buffer. */
p = wcsarg;
mbs = initial;
- if ((nbytes = wcsrtombs(convbuf, (const wchar_t **)&p,
+ if ((nbytes = wcsrtombs(convbuf, (void *)&p,
nbytes, &mbs)) == (size_t)-1) {
free(convbuf);
return (NULL);