]> Joshua Wise's Git repositories - netwatch.git/commitdiff
second arg of memcpy should be const
authorJacob Potter <jacob@J4CBO-MBP-R7.RES.CMU.EDU>
Thu, 2 Oct 2008 22:32:59 +0000 (18:32 -0400)
committerJacob Potter <jacob@J4CBO-MBP-R7.RES.CMU.EDU>
Thu, 2 Oct 2008 22:32:59 +0000 (18:32 -0400)
include/minilib.h
lib/minilib.c

index aa8bf7364d16220e854c019518178fd0479060b0..3704bca217e9a5caa3d554acd484e01f90d9c247 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <stdarg.h>
 
-extern void memcpy(void *dest, void *src, int bytes);
+extern void memcpy(void *dest, const void *src, int bytes);
 extern void memmove(void *dest, void *src, int bytes);
 extern int memcmp(const char *a2, const char *a1, int bytes);
 extern int strcmp(const char *a2, const char *a1);
index 7baca595ed4c62fa3ff0d09d1c8bbcaf1c0815d6..48d79484dd5cda244405a0b30c4e2555c733716a 100644 (file)
@@ -1,7 +1,7 @@
 #include "console.h"
 #include <minilib.h>
 
-void memcpy(void *dest, void *src, int bytes)
+void memcpy(void *dest, const void *src, int bytes)
 {
        char * cdest = dest;
        char * csrc = src;
This page took 0.024905 seconds and 4 git commands to generate.