Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netsmb Fix reversed arguments. Found by -Wcast-qual and ...



details:   https://anonhg.NetBSD.org/src/rev/9751588686d9
branches:  trunk
changeset: 581183:9751588686d9
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 29 21:26:02 2005 +0000

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

diffstat:

 sys/netsmb/iconv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 72cd216eb7e3 -r 9751588686d9 sys/netsmb/iconv.c
--- a/sys/netsmb/iconv.c        Sun May 29 21:25:24 2005 +0000
+++ b/sys/netsmb/iconv.c        Sun May 29 21:26:02 2005 +0000
@@ -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 @@
        if (inbuf == NULL)
                return(0); /* initial shift state */
 
-       memcpy((void *)*inbuf, (void *)*outbuf, *inbytesleft);
+       (void)memcpy(*outbuf, *inbuf, *inbytesleft);
 
        *outbytesleft -= *inbytesleft;
 



Home | Main Index | Thread Index | Old Index