summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-10-11 13:17:54 +0000
committer[email protected] <[email protected]>2011-10-11 13:17:54 +0000
commit1e06bb2726c1bdedbf5a962c2d81996358e3d186 (patch)
tree773b971b6f9175150a077a2eef252d54b069545f
parentf9a41a9686e8fa4361219b2bbde9a1dcfbd55ac7 (diff)
fix compile error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316
-rw-r--r--src/module.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/module.c b/src/module.c
index 71b80c1b8a..7a15b82898 100644
--- a/src/module.c
+++ b/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;
}