From 0641a487d711fcf11adba9e5b81da9f2407614e2 Mon Sep 17 00:00:00 2001 From: emma Date: Thu, 25 Jul 2024 21:17:30 -0600 Subject: [PATCH] intcmp(1): fixes pointless condition; formatting --- src/intcmp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/intcmp.c b/src/intcmp.c index 7673944..f990a10 100644 --- a/src/intcmp.c +++ b/src/intcmp.c @@ -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; }