aboutsummaryrefslogtreecommitdiff
path: root/rpt.c
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-10-08 19:37:12 +0200
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2023-10-08 19:37:12 +0200
commit654e1be127f663d50c91fc7d7d1a932aec091d17 (patch)
tree39115d727f78d857e28983382e415080d105fd62 /rpt.c
parent763d49da434c25b62763ebba67ea340a9c143cfe (diff)
error message and unused comments deleted
Diffstat (limited to 'rpt.c')
-rw-r--r--rpt.c7
1 files 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);