Changes in uspace/app/mkext4/mkext4.c [6ba36a0:6abdef37] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkext4/mkext4.c
r6ba36a0 r6abdef37 68 68 ++argv; 69 69 70 while (*argv [0] == '-') {70 while (*argv && *argv[0] == '-') { 71 71 if (str_cmp(*argv, "--size") == 0) { 72 72 --argc; … … 87 87 --argc; 88 88 ++argv; 89 continue; 89 90 } 90 91 … … 107 108 --argc; 108 109 ++argv; 110 continue; 109 111 } 110 112 … … 122 124 --argc; 123 125 ++argv; 126 continue; 127 } 128 129 if (str_cmp(*argv, "--help") == 0) { 130 syntax_print(); 131 return 0; 124 132 } 125 133 … … 128 136 ++argv; 129 137 break; 138 } else { 139 printf(NAME ": Invalid argument: %s\n", *argv); 140 syntax_print(); 141 return 1; 130 142 } 131 143 }
Note:
See TracChangeset
for help on using the changeset viewer.