remove unnecessary __UNCONST.

This commit is contained in:
yamt 2005-12-02 11:14:20 +00:00
parent 6efd91c498
commit 307c0260b8

View File

@ -1,4 +1,4 @@
/* $NetBSD: citrus_none.c,v 1.16 2005/11/29 03:11:58 christos Exp $ */
/* $NetBSD: citrus_none.c,v 1.17 2005/12/02 11:14:20 yamt Exp $ */
/*-
* Copyright (c)2002 Citrus Project,
@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: citrus_none.c,v 1.16 2005/11/29 03:11:58 christos Exp $");
__RCSID("$NetBSD: citrus_none.c,v 1.17 2005/12/02 11:14:20 yamt Exp $");
#endif /* LIBC_SCCS and not lint */
#include <assert.h>
@ -191,8 +191,8 @@ _citrus_NONE_ctype_mbstowcs(void * __restrict cl, wchar_t * __restrict wcs,
size_t * __restrict nresult)
{
const char *rs = s;
return _citrus_NONE_ctype_mbsrtowcs(cl, wcs, __UNCONST(&rs), n, NULL,
nresult);
return (_citrus_NONE_ctype_mbsrtowcs(cl, wcs, &rs, n, NULL, nresult));
}
static int
@ -288,8 +288,8 @@ _citrus_NONE_ctype_wcstombs(void * __restrict cl, char * __restrict s,
size_t * __restrict nresult)
{
const wchar_t *rpwcs = pwcs;
return _citrus_NONE_ctype_wcsrtombs(cl, s, __UNCONST(&rpwcs), n, NULL,
nresult);
return (_citrus_NONE_ctype_wcsrtombs(cl, s, &rpwcs, n, NULL, nresult));
}
static int