Changeset 06599a1 in mainline for uspace/app/sysctl/main.c
- Timestamp:
- 2020-03-06T19:13:55Z (4 years ago)
- Children:
- 3529f148
- Parents:
- 22d990c
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2020-02-05 21:48:41)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2020-03-06 19:13:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysctl/main.c
r22d990c r06599a1 76 76 } 77 77 78 for (unit_handle_t *it = units; it - units < (int)unit_cnt; ++it) { 78 for (size_t i = 0; i < unit_cnt; i++) { 79 unit_handle_t handle = units[i]; 79 80 char name[NAME_BUFFER]; 80 81 unit_state_t state; 81 82 82 rc = sysman_unit_get_name( *it, name, NAME_BUFFER);83 rc = sysman_unit_get_name(handle, name, NAME_BUFFER); 83 84 if (rc != EOK) 84 85 goto fail; 85 86 86 rc = sysman_unit_get_state( *it, &state);87 rc = sysman_unit_get_state(handle, &state); 87 88 if (rc != EOK) 88 89 goto fail;
Note:
See TracChangeset
for help on using the changeset viewer.