forked from bonsai/harakit
intcmp(1): fixes pointless condition; formatting
This commit is contained in:
parent
2fe3aa894c
commit
0641a487d7
@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
mode = 0;
|
||||
|
||||
if (argc == 0 | argc < 3) { return usage(program_name); }
|
||||
if (argc == 0) { return usage(program_name); }
|
||||
|
||||
while ((c = getopt(argc, argv, "egl")) != -1) {
|
||||
switch (c) {
|
||||
@ -68,7 +68,10 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if (*argv[i] != '\0' || errno != 0) {
|
||||
fprintf(
|
||||
stderr, "%s: argument #%d: Invalid integer\n", program_name, (int)i
|
||||
stderr,
|
||||
"%s: argument #%d: Invalid integer\n",
|
||||
program_name,
|
||||
(int)i
|
||||
);
|
||||
return EX_USAGE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user