summaryrefslogtreecommitdiff
path: root/src/object.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-09-29 10:23:56 +0800
committerbernard <[email protected]>2017-09-29 10:23:56 +0800
commitcccff34fcac04f34233a33e453f2d0ec255bf231 (patch)
treed406036f73296b27f3cb96e77ede98dd7803c61d /src/object.c
parente9a77b513f0a4b37d539a030592a61b08d03602d (diff)
parent3691b67e83ab57196dfc62606b1be18db76994a7 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'src/object.c')
-rw-r--r--src/object.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/object.c b/src/object.c
index d71f792b5d..4fb8bf1db8 100644
--- a/src/object.c
+++ b/src/object.c
@@ -211,7 +211,7 @@ void rt_object_init(struct rt_object *object,
#ifdef RT_USING_MODULE
/* get module object information */
information = (rt_module_self() != RT_NULL) ?
- &rt_module_self()->module_object[type] : &rt_object_container[type];
+ &rt_module_self()->module_object[type] : &rt_object_container[type];
#else
/* get object information */
information = &rt_object_container[type];
@@ -362,8 +362,8 @@ void rt_object_delete(rt_object_t object)
else
#endif
- /* free the memory of object */
- RT_KERNEL_FREE(object);
+ /* free the memory of object */
+ RT_KERNEL_FREE(object);
}
#endif
@@ -424,7 +424,7 @@ rt_object_t rt_object_find(const char *name, rt_uint8_t type)
if (*name_ptr == '/')
{
- struct rt_module* module = RT_NULL;
+ struct rt_module *module = RT_NULL;
/* get the name length of module */
module_name_length = name_ptr - name;
@@ -435,15 +435,15 @@ rt_object_t rt_object_find(const char *name, rt_uint8_t type)
/* find module */
information = &rt_object_container[RT_Object_Class_Module];
for (node = information->object_list.next;
- node != &(information->object_list);
- node = node->next)
+ node != &(information->object_list);
+ node = node->next)
{
object = rt_list_entry(node, struct rt_object, list);
if ((rt_strncmp(object->name, name, module_name_length) == 0) &&
(module_name_length == RT_NAME_MAX || object->name[module_name_length] == '\0'))
{
/* get module */
- module = (struct rt_module*)object;
+ module = (struct rt_module *)object;
break;
}
}