X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.c;h=afd5ce7bf8e26286a02d2bbf788916cd5de72b07;hb=c896399b218eb92e2cfd9926949438e47427421d;hp=77ab6036921b9dfde551ef2b8f860d787b2994f0;hpb=ca3e09ab0e4ffc59ba170094421571ada871adbb;p=selector.git diff --git a/selector.c b/selector.c index 77ab603..afd5ce7 100644 --- a/selector.c +++ b/selector.c @@ -3,7 +3,7 @@ * selector is a simple command line utility for selection of strings * with a dynamic pattern-matching. * - * Copyright (c) 2009, 2010, 2011, 2012 Francois Fleuret + * Copyright (c) 2009-2013 Francois Fleuret * Written by Francois Fleuret * * This file is part of selector. @@ -79,7 +79,7 @@ void *safe_malloc(size_t n) { void *p = malloc(n); if(!p && n != 0) { fprintf(stderr, - "selector: can not allocate memory: %s\n", strerror(errno)); + "selector: cannot allocate memory: %s\n", strerror(errno)); exit(EXIT_FAILURE); } return p; @@ -203,7 +203,8 @@ void usage(FILE *out) { fprintf(out, " make a flash instead of a beep on an edition error\n"); fprintf(out, " --bash\n"); fprintf(out, " setting for bash history search, same as -b -i -d -v -w -l ${HISTSIZE}\n"); - fprintf(out, " -- all following arguments are filenames\n"); + fprintf(out, " --\n"); + fprintf(out, " all following arguments are filenames\n"); fprintf(out, " -t , --title <title>\n"); fprintf(out, " add a title in the modeline\n"); fprintf(out, " -r <pattern>, --pattern <pattern>\n"); @@ -929,7 +930,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: Cannot open `%s'.\n", input_filename); exit(EXIT_FAILURE); } @@ -1418,7 +1419,7 @@ int main(int argc, char **argv) { fprintf(out, "\n"); } else { fprintf(stderr, - "selector: Can not open %s for writing.\n", + "selector: Cannot open %s for writing.\n", output_filename); exit(EXIT_FAILURE); }