mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 11:13:31 +08:00
fix compile error
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1755 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
f9a41a9686
commit
1e06bb2726
@ -815,7 +815,7 @@ rt_module_t rt_module_open(const char *path)
|
|||||||
int fd, length;
|
int fd, length;
|
||||||
struct rt_module *module;
|
struct rt_module *module;
|
||||||
struct stat s;
|
struct stat s;
|
||||||
char *buffer, *offset_ptr, *name;
|
char *buffer, *offset_ptr;
|
||||||
|
|
||||||
RT_DEBUG_NOT_IN_INTERRUPT;
|
RT_DEBUG_NOT_IN_INTERRUPT;
|
||||||
|
|
||||||
@ -862,11 +862,8 @@ rt_module_t rt_module_open(const char *path)
|
|||||||
return RT_NULL;
|
return RT_NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//name = _strip_name(path);
|
module = rt_module_load(path, (void *)buffer);
|
||||||
name = (char *)path;
|
|
||||||
module = rt_module_load(name, (void *)buffer);
|
|
||||||
rt_free(buffer);
|
rt_free(buffer);
|
||||||
//rt_free(name);
|
|
||||||
|
|
||||||
return module;
|
return module;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user