From 654e1be127f663d50c91fc7d7d1a932aec091d17 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 8 Oct 2023 19:37:12 +0200 Subject: error message and unused comments deleted --- rpt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpt.c b/rpt.c index d07d227..4c1fc1d 100644 --- a/rpt.c +++ b/rpt.c @@ -154,12 +154,15 @@ main(int argc, char* argv[]) { fprintf(stderr, "Failed to read COUNT : '%s'.\n", strcount); - return 2; /* error while reading COUNT */ + return 2; } } if (optind >= argc) - return 3; /* COMMAND not provided */ + { + fprintf(stderr, "rpt: no command provided.\n"); + return 3; + } repeat_cmd(argv + optind, count, handle_error_f); -- cgit v1.2.3