فهرست منبع

fix compile error

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc@gmail.com 13 سال پیش
والد
کامیت
1e06bb2726
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      src/module.c

+ 2 - 5
src/module.c

@@ -815,7 +815,7 @@ rt_module_t rt_module_open(const char *path)
 	int fd, length;
 	struct rt_module *module;
 	struct stat s;
-	char *buffer, *offset_ptr, *name;
+	char *buffer, *offset_ptr;
 
 	RT_DEBUG_NOT_IN_INTERRUPT;
 
@@ -862,11 +862,8 @@ rt_module_t rt_module_open(const char *path)
 		return RT_NULL;
 	}
 
-	//name = _strip_name(path);
-	name = (char *)path;
-	module = rt_module_load(name, (void *)buffer);
+	module = rt_module_load(path, (void *)buffer);
 	rt_free(buffer);
-	//rt_free(name);
 
 	return module;
 }