瀏覽代碼

memscan does not alter the mem pointer - make it const

tags/v0.9.3
Holger Lubitz 18 年之前
父節點
當前提交
d0d044443d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/core/stringextra.c

+ 1
- 1
src/core/stringextra.c 查看文件

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…
取消
儲存