X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=selector.git;a=blobdiff_plain;f=selector.c;h=38c62acb66ae342c259f1ed9deb7538d413e2f65;hp=1b18ba3436328fc29a129a3d1d38becbdccf766c;hb=e9b84f8dd42f4c22744c0b061b876dc6eaf23722;hpb=0aa66afd075bf9f4ba8e79d9d6cbdb334ed6cebe diff --git a/selector.c b/selector.c index 1b18ba3..38c62ac 100644 --- a/selector.c +++ b/selector.c @@ -140,7 +140,7 @@ void str_to_positive_integers(char *string, int *values, int nb) { } } else { fprintf(stderr, - "Selector: Empty integer value in `%s'.\n", string); + "Selector: Empty value in `%s'.\n", string); exit(EXIT_FAILURE); } } else { @@ -160,7 +160,7 @@ void error_feedback() { } } -void print_help(FILE *out) { +void usage(FILE *out) { fprintf(out, "Selector version %s (%s)\n", VERSION, UNAME); fprintf(out, "Written by Francois Fleuret .\n"); @@ -940,10 +940,10 @@ int main(int argc, char **argv) { if(show_help || error) { if(error) { - print_help(stderr); + usage(stderr); exit(EXIT_FAILURE); } else { - print_help(stdout); + usage(stdout); exit(EXIT_SUCCESS); } }