intcmp(1): fixes pointless condition; formatting

This commit is contained in:
Emma Tebibyte 2024-07-25 21:17:30 -06:00
parent 2fe3aa894c
commit 0641a487d7
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
mode = 0; 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) { while ((c = getopt(argc, argv, "egl")) != -1) {
switch (c) { switch (c) {
@ -68,7 +68,10 @@ int main(int argc, char *argv[]) {
if (*argv[i] != '\0' || errno != 0) { if (*argv[i] != '\0' || errno != 0) {
fprintf( 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; return EX_USAGE;
} }