diff options
author | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-08-02 00:52:04 +0200 |
---|---|---|
committer | Holger Lubitz <hal@duncan.ol.sub.de> | 2007-08-02 00:52:04 +0200 |
commit | d0d044443d91e2670ac10a6c0f8d70dadec751b7 (patch) | |
tree | 1ad0a7cc1a1033860e42fc3395edbb9aff7745b8 /src/core/stringextra.c | |
parent | 8e3e97fcef46cd3864da144e8295250b8f77a0db (diff) | |
download | ipxe-d0d044443d91e2670ac10a6c0f8d70dadec751b7.tar.gz |
memscan does not alter the mem pointer - make it const
Diffstat (limited to 'src/core/stringextra.c')
-rw-r--r-- | src/core/stringextra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stringextra.c b/src/core/stringextra.c index e8a6d938..bd45ae89 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; |