Changes in uspace/lib/net/adt/module_map.c [0ab68f6:0485135] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/adt/module_map.c
r0ab68f6 r0485135 38 38 #include <task.h> 39 39 #include <unistd.h> 40 #include <err no.h>40 #include <err.h> 41 41 42 42 #include <ipc/services.h> … … 67 67 connect_module_t connect_module) 68 68 { 69 ERROR_DECLARE; 70 69 71 module_ref tmp_module; 70 int rc;71 72 72 73 tmp_module = (module_ref) malloc(sizeof(module_t)); … … 82 83 tmp_module->connect_module = connect_module; 83 84 84 rc = modules_add(modules, tmp_module->name, 0, tmp_module);85 if (rc != EOK) {85 if (ERROR_OCCURRED(modules_add(modules, tmp_module->name, 0, 86 tmp_module))) { 86 87 free(tmp_module); 87 return rc;88 return ERROR_CODE; 88 89 } 89 90 if (module)
Note:
See TracChangeset
for help on using the changeset viewer.