浏览代码

mem: proper field name for shm malloc unsafe define when memory debugging is off

- reported by Juha Heinanen
Daniel-Constantin Mierla 10 年之前
父节点
当前提交
de12775edc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mem/shm.h

+ 1 - 1
mem/shm.h

@@ -62,7 +62,7 @@ extern sr_shm_api_t _shm_root;
 									_SRC_FUNCTION_, _SRC_LINE_)
 #else
 #	define shm_malloc(s)         _shm_root.xmalloc(_shm_root.mem_block, (s))
-#	define shm_malloc_unsafe(s)  _shm_root.xmalloc_safe(_shm_root.mem_block, (s))
+#	define shm_malloc_unsafe(s)  _shm_root.xmalloc_unsafe(_shm_root.mem_block, (s))
 #	define shm_realloc(p, s)     _shm_root.xrealloc(_shm_root.mem_block, (p), (s))
 #	define shm_resize(p, s)      _shm_root.xresize(_shm_root.mem_block, (p), (s))
 #	define shm_free(p)           _shm_root.xfree(_shm_root.mem_block, (p))