浏览代码

- fixed a typo preventing compilation
- fixed a warning in tm

Andrei Pelinescu-Onciul 23 年之前
父节点
当前提交
0a365d549b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Makefile.defs
  2. 1 1
      modules/tm/lock.c

+ 1 - 1
Makefile.defs

@@ -149,7 +149,7 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
 	 #-DNO_LOG
 
 #PROFILE=  -pg #set this if you want profiling
-mode = debug
+#mode = debug
 ifeq ($(mode),)
 	mode = release
 endif

+ 1 - 1
modules/tm/lock.c

@@ -310,7 +310,7 @@ error:
 void lock_cleanup()
 {
 	/* must check if someone uses them, for now just leave them allocated*/
-	if (timer_group_lock) shm_free(timer_group_lock);
+	if (timer_group_lock) shm_free((void*)timer_group_lock);
 }
 
 #else