Fix reversed arguments. Found by -Wcast-qual and removing stupid casts.
This commit is contained in:
parent
273df63602
commit
f6a2fa578d
@ -1,9 +1,9 @@
|
||||
/* $NetBSD: iconv.c,v 1.8 2004/04/21 18:16:14 itojun Exp $ */
|
||||
/* $NetBSD: iconv.c,v 1.9 2005/05/29 21:26:02 christos Exp $ */
|
||||
|
||||
/* Public domain */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iconv.c,v 1.8 2004/04/21 18:16:14 itojun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iconv.c,v 1.9 2005/05/29 21:26:02 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -35,7 +35,7 @@ iconv_conv(void *handle, const char **inbuf,
|
||||
if (inbuf == NULL)
|
||||
return(0); /* initial shift state */
|
||||
|
||||
memcpy((void *)*inbuf, (void *)*outbuf, *inbytesleft);
|
||||
(void)memcpy(*outbuf, *inbuf, *inbytesleft);
|
||||
|
||||
*outbytesleft -= *inbytesleft;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user