Changeset 964e897 in mainline for uspace/app/hrctl/hrctl.c
- Timestamp:
- 2025-05-07T12:12:18Z (5 weeks ago)
- Children:
- fde80323
- Parents:
- 56602e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/hrctl/hrctl.c
r56602e0 r964e897 34 34 */ 35 35 36 #include <ctype.h> 36 37 #include <errno.h> 37 38 #include <getopt.h> … … 275 276 } 276 277 277 vol_config->level = strtol(argv[optind++], NULL, 10); 278 const char *level_str = argv[optind++]; 279 if (str_size(level_str) != 1 && !isdigit(level_str[0])) { 280 printf(NAME ": unknown level \"%s\"\n", level_str); 281 goto error; 282 } 283 284 vol_config->level = strtol(level_str, NULL, 10); 278 285 279 286 errno_t rc = fill_config_devs(argc, argv, vol_config);
Note:
See TracChangeset
for help on using the changeset viewer.