From: Joshua Wise Date: Thu, 2 Oct 2008 22:34:06 +0000 (-0400) Subject: needs moar const X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/ee681ad4b4f2ace24beb4d401d425573b450bbd7?ds=sidebyside;hp=--cc needs moar const --- ee681ad4b4f2ace24beb4d401d425573b450bbd7 diff --git a/lib/minilib.c b/lib/minilib.c index 48d7948..0407d3f 100644 --- a/lib/minilib.c +++ b/lib/minilib.c @@ -3,8 +3,8 @@ void memcpy(void *dest, const void *src, int bytes) { - char * cdest = dest; - char * csrc = src; + char *cdest = dest; + const char *csrc = src; while (bytes--) *(cdest++) = *(csrc++); }