Source-Changes-HG archive

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

[src/trunk]: src/dist/smbfs/lib/smb fix gcc45 warnings



details:   https://anonhg.NetBSD.org/src/rev/9ca4b968b1d2
branches:  trunk
changeset: 768313:9ca4b968b1d2
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Aug 14 12:35:35 2011 +0000

description:
fix gcc45 warnings

diffstat:

 dist/smbfs/lib/smb/rap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 526e06ac63cb -r 9ca4b968b1d2 dist/smbfs/lib/smb/rap.c
--- a/dist/smbfs/lib/smb/rap.c  Sun Aug 14 12:32:01 2011 +0000
+++ b/dist/smbfs/lib/smb/rap.c  Sun Aug 14 12:35:35 2011 +0000
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rap.c,v 1.6 2006/05/10 21:53:15 mrg Exp $");
+__RCSID("$NetBSD: rap.c,v 1.7 2011/08/14 12:35:35 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/errno.h>
@@ -86,7 +86,7 @@
                s = np;
        }
        *rlen = len;
-       *(const char**)next = s;
+       memcpy(next, &s, sizeof(s));
        return 0;
 }
 
@@ -116,7 +116,7 @@
                s = np;
        }
        *rlen = len;
-       *(const char**)next = s;
+       memcpy(next, &s, sizeof(s));
        return 0;
 }
 
@@ -147,7 +147,7 @@
                s = np;
        }
        *rlen = len;
-       *(const char**)next = s;
+       memcpy(next, &s, sizeof(s));
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index