From 5a419be6e30edacb1f0c90a553b71aa75a88122b Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Mon, 28 Jun 2010 18:25:20 +0200 Subject: [PATCH] Cosmetics. --- selector.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/selector.c b/selector.c index 8f2296b..b0f30ce 100644 --- a/selector.c +++ b/selector.c @@ -128,7 +128,7 @@ void str_to_positive_integers(char *string, int *values, int nb) { return; } else { fprintf(stderr, - "Selector: Missing value in `%s'.\n", string); + "selector: Missing value in `%s'.\n", string); exit(EXIT_FAILURE); } } @@ -136,17 +136,17 @@ void str_to_positive_integers(char *string, int *values, int nb) { gotone = 0; } else { fprintf(stderr, - "Selector: Too many values in `%s'.\n", string); + "selector: Too many values in `%s'.\n", string); exit(EXIT_FAILURE); } } else { fprintf(stderr, - "Selector: Empty value in `%s'.\n", string); + "selector: Empty value in `%s'.\n", string); exit(EXIT_FAILURE); } } else { fprintf(stderr, - "Selector: Syntax error in `%s'.\n", string); + "selector: Syntax error in `%s'.\n", string); exit(EXIT_FAILURE); } s++; @@ -751,7 +751,7 @@ void read_file(struct hash_table_t *hash_table, file = fopen(input_filename, "r"); if(!file) { - fprintf(stderr, "Selector: Can not open `%s'.\n", input_filename); + fprintf(stderr, "selector: Can not open `%s'.\n", input_filename); exit(EXIT_FAILURE); } @@ -784,7 +784,7 @@ void read_file(struct hash_table_t *hash_table, if(eol == BUFFER_SIZE) { raw_line[BUFFER_SIZE - 1] = '\0'; - fprintf(stderr, "Selector: Line too long (max is %d characters):\n", + fprintf(stderr, "selector: Line too long (max is %d characters):\n", BUFFER_SIZE); fprintf(stderr, raw_line); fprintf(stderr, "\n"); @@ -857,7 +857,7 @@ int main(int argc, char **argv) { struct hash_table_t *hash_table; if(!isatty(STDIN_FILENO)) { - fprintf(stderr, "Selector: The standard input is not a tty.\n"); + fprintf(stderr, "selector: The standard input is not a tty.\n"); exit(EXIT_FAILURE); } @@ -1080,7 +1080,7 @@ int main(int argc, char **argv) { color_bg_highlight < 0 || color_bg_highlight >= COLORS) { echo(); endwin(); - fprintf(stderr, "Selector: Color numbers have to be between 0 and %d.\n", + fprintf(stderr, "selector: Color numbers have to be between 0 and %d.\n", COLORS - 1); exit(EXIT_FAILURE); } @@ -1232,7 +1232,7 @@ int main(int argc, char **argv) { fprintf(out, "\n"); } else { fprintf(stderr, - "Selector: Can not open %s for writing.\n", + "selector: Can not open %s for writing.\n", output_filename); exit(EXIT_FAILURE); } -- 2.20.1