diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-10-08 19:37:12 +0200 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2023-10-08 19:37:12 +0200 |
commit | 654e1be127f663d50c91fc7d7d1a932aec091d17 (patch) | |
tree | 39115d727f78d857e28983382e415080d105fd62 /rpt.c | |
parent | 763d49da434c25b62763ebba67ea340a9c143cfe (diff) |
error message and unused comments deleted
Diffstat (limited to 'rpt.c')
-rw-r--r-- | rpt.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |