2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-18 21:43:14 +00:00

memscan does not alter the mem pointer - make it const

This commit is contained in:
Holger Lubitz 2007-08-02 00:52:04 +02:00
parent 8e3e97fcef
commit d0d044443d

View 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;