Changes in uspace/app/devctl/devctl.c [c1694b6b:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/devctl/devctl.c
rc1694b6b rb7fd2a0 70 70 } 71 71 72 static int fun_subtree_print(devman_handle_t funh, int lvl)72 static errno_t fun_subtree_print(devman_handle_t funh, int lvl) 73 73 { 74 74 devman_handle_t devh; … … 76 76 size_t count, i; 77 77 unsigned int score; 78 int rc;78 errno_t rc; 79 79 int j; 80 80 … … 136 136 } 137 137 138 static int fun_tree_print(void)138 static errno_t fun_tree_print(void) 139 139 { 140 140 devman_handle_t root_fun; 141 int rc;141 errno_t rc; 142 142 143 143 rc = devman_fun_get_handle("/", &root_fun, 0); … … 154 154 } 155 155 156 static int fun_online(const char *path)156 static errno_t fun_online(const char *path) 157 157 { 158 158 devman_handle_t funh; 159 int rc;159 errno_t rc; 160 160 161 161 rc = devman_fun_get_handle(path, &funh, 0); … … 175 175 } 176 176 177 static int fun_offline(const char *path)177 static errno_t fun_offline(const char *path) 178 178 { 179 179 devman_handle_t funh; 180 int rc;180 errno_t rc; 181 181 182 182 rc = devman_fun_get_handle(path, &funh, 0); … … 197 197 } 198 198 199 static int drv_list(void)199 static errno_t drv_list(void) 200 200 { 201 201 devman_handle_t *devs; … … 207 207 size_t i; 208 208 table_t *table = NULL; 209 int rc;209 errno_t rc; 210 210 211 211 rc = devman_get_drivers(&drvs, &ndrvs); … … 252 252 } 253 253 254 static int drv_show(char *drvname)254 static errno_t drv_show(char *drvname) 255 255 { 256 256 devman_handle_t *devs; … … 262 262 size_t ndevs; 263 263 size_t i; 264 int rc;264 errno_t rc; 265 265 266 266 rc = devman_driver_get_handle(drvname, &drvh); … … 317 317 } 318 318 319 static int drv_load(const char *drvname)320 { 321 int rc;319 static errno_t drv_load(const char *drvname) 320 { 321 errno_t rc; 322 322 devman_handle_t drvh; 323 323 … … 337 337 } 338 338 339 static int drv_unload(const char *drvname)340 { 341 int rc;339 static errno_t drv_unload(const char *drvname) 340 { 341 errno_t rc; 342 342 devman_handle_t drvh; 343 343 … … 371 371 int main(int argc, char *argv[]) 372 372 { 373 int rc;373 errno_t rc; 374 374 375 375 if (argc == 1 || argv[1][0] == '-') {
Note:
See TracChangeset
for help on using the changeset viewer.