From 42e26afa5bd5fa75849fb51d0e7918aa51cffda7 Mon Sep 17 00:00:00 2001 From: Jacob Potter Date: Thu, 2 Oct 2008 18:32:59 -0400 Subject: [PATCH 1/1] second arg of memcpy should be const --- include/minilib.h | 2 +- lib/minilib.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.43.0