remove an unnecessary __UNCONST.

This commit is contained in:
yamt 2005-12-02 13:51:22 +00:00
parent c9d01e68e9
commit bc6aedb03c
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vswscanf.c,v 1.2 2005/11/29 03:12:00 christos Exp $ */
/* $NetBSD: vswscanf.c,v 1.3 2005/12/02 13:51:22 yamt Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -42,7 +42,7 @@
static char sccsid[] = "@(#)vsscanf.c 8.1 (Berkeley) 6/4/93";
__FBSDID("$FreeBSD: src/lib/libc/stdio/vswscanf.c,v 1.3 2004/04/07 09:55:05 tjr Exp $");
#else
__RCSID("$NetBSD: vswscanf.c,v 1.2 2005/11/29 03:12:00 christos Exp $");
__RCSID("$NetBSD: vswscanf.c,v 1.3 2005/12/02 13:51:22 yamt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -85,8 +85,7 @@ vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt,
if ((mbstr = malloc(wcslen(str) * MB_CUR_MAX + 1)) == NULL)
return (EOF);
mbs = initial;
if ((mlen = wcsrtombs(mbstr, __UNCONST(&rstr),
SIZE_T_MAX, &mbs)) == (size_t)-1) {
if ((mlen = wcsrtombs(mbstr, &rstr, SIZE_T_MAX, &mbs)) == (size_t)-1) {
free(mbstr);
return (EOF);
}