Browse Source

memscan does not alter the mem pointer - make it const

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
d0d044443d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/stringextra.c

+ 1
- 1
src/core/stringextra.c View File

258
  * returns the address of the first occurrence of @c, or 1 byte past
258
  * returns the address of the first occurrence of @c, or 1 byte past
259
  * the area if @c is not found
259
  * the area if @c is not found
260
  */
260
  */
261
-void * memscan(void * addr, int c, size_t size)
261
+void * memscan(const void * addr, int c, size_t size)
262
 {
262
 {
263
 	unsigned char * p = (unsigned char *) addr;
263
 	unsigned char * p = (unsigned char *) addr;
264
 
264
 

Loading…
Cancel
Save