From: Holger Lubitz Date: Wed, 1 Aug 2007 22:52:04 +0000 (+0200) Subject: memscan does not alter the mem pointer - make it const X-Git-Tag: v0.9.3~101^2^2^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0d044443d91e2670ac10a6c0f8d70dadec751b7;p=thirdparty%2Fipxe.git memscan does not alter the mem pointer - make it const --- diff --git a/src/core/stringextra.c b/src/core/stringextra.c index e8a6d9386..bd45ae893 100644 --- a/src/core/stringextra.c +++ b/src/core/stringextra.c @@ -258,7 +258,7 @@ char * bcopy(const char * src, char * dest, int count) * returns the address of the first occurrence of @c, or 1 byte past * the area if @c is not found */ -void * memscan(void * addr, int c, size_t size) +void * memscan(const void * addr, int c, size_t size) { unsigned char * p = (unsigned char *) addr;