From: Jacob Potter Date: Thu, 2 Oct 2008 22:32:59 +0000 (-0400) Subject: second arg of memcpy should be const X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/42e26afa5bd5fa75849fb51d0e7918aa51cffda7?ds=inline;hp=--cc second arg of memcpy should be const --- 42e26afa5bd5fa75849fb51d0e7918aa51cffda7 diff --git a/include/minilib.h b/include/minilib.h index aa8bf73..3704bca 100644 --- a/include/minilib.h +++ b/include/minilib.h @@ -3,7 +3,7 @@ #include -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); diff --git a/lib/minilib.c b/lib/minilib.c index 7baca59..48d7948 100644 --- a/lib/minilib.c +++ b/lib/minilib.c @@ -1,7 +1,7 @@ #include "console.h" #include -void memcpy(void *dest, void *src, int bytes) +void memcpy(void *dest, const void *src, int bytes) { char * cdest = dest; char * csrc = src;