Fix reversed arguments. Found by -Wcast-qual and removing stupid casts.

This commit is contained in:
christos 2005-05-29 21:26:02 +00:00
parent 273df63602
commit f6a2fa578d
1 changed files with 3 additions and 3 deletions

View File

@ -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 */ /* Public domain */
#include <sys/cdefs.h> #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/param.h>
#include <sys/kernel.h> #include <sys/kernel.h>
@ -35,7 +35,7 @@ iconv_conv(void *handle, const char **inbuf,
if (inbuf == NULL) if (inbuf == NULL)
return(0); /* initial shift state */ return(0); /* initial shift state */
memcpy((void *)*inbuf, (void *)*outbuf, *inbytesleft); (void)memcpy(*outbuf, *inbuf, *inbytesleft);
*outbytesleft -= *inbytesleft; *outbytesleft -= *inbytesleft;