]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
memscan does not alter the mem pointer - make it const
authorHolger Lubitz <hal@duncan.ol.sub.de>
Wed, 1 Aug 2007 22:52:04 +0000 (00:52 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Wed, 1 Aug 2007 22:52:04 +0000 (00:52 +0200)
src/core/stringextra.c

index e8a6d9386b0248a24cd77d500fa365327640e307..bd45ae893181d12b45e65641958665fc401e02f1 100644 (file)
@@ -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;