Module Name:    src
Committed By:   christos
Date:           Sun Aug 14 12:35:35 UTC 2011

Modified Files:
        src/dist/smbfs/lib/smb: rap.c

Log Message:
fix gcc45 warnings


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/dist/smbfs/lib/smb/rap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/dist/smbfs/lib/smb/rap.c
diff -u src/dist/smbfs/lib/smb/rap.c:1.6 src/dist/smbfs/lib/smb/rap.c:1.7
--- src/dist/smbfs/lib/smb/rap.c:1.6	Wed May 10 17:53:15 2006
+++ src/dist/smbfs/lib/smb/rap.c	Sun Aug 14 08:35:35 2011
@@ -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;
 }
 

Reply via email to