Changeset dda2602 in mainline for uspace/srv/sysman/unit.c
- Timestamp:
- 2019-08-03T09:41:07Z (5 years ago)
- Children:
- dd5c623
- Parents:
- c0e4fc50
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-05-08 11:10:06)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-03 09:41:07)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/unit.c
rc0e4fc50 rdda2602 70 70 unit->state = STATE_EMBRYO; 71 71 72 link_initialize(&unit->units); 73 link_initialize(&unit->bfs_link); 72 74 list_initialize(&unit->dependants); 73 75 list_initialize(&unit->dependencies); … … 181 183 } 182 184 183 bool unit_parse_unit_list(const char * value, void *dst, text_parse_t *parse,185 bool unit_parse_unit_list(const char *string, void *dst, text_parse_t *parse, 184 186 size_t lineno) 185 187 { 186 188 unit_t *unit = dst; 187 189 bool result; 188 char *my_ value = str_dup(value);189 190 if (!my_ value) {190 char *my_string = str_dup(string); 191 192 if (!my_string) { 191 193 result = false; 192 194 goto finish; 193 195 } 194 196 195 char *to_split = my_ value;197 char *to_split = my_string; 196 198 char *cur_tok; 197 199 … … 206 208 207 209 finish: 208 free(my_ value);210 free(my_string); 209 211 return result; 210 212 }
Note:
See TracChangeset
for help on using the changeset viewer.