X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=selector.c;h=11265c673b3efc3713383839ee87fe454a66fb0c;hb=007ead4b6f3d770c9adf6502abac7eb825e16d83;hp=7cea39db289f42935b2e44d0436f7a543b628731;hpb=d1d58172b0e73be74d9ed8a1b252c7524d6f9469;p=selector.git diff --git a/selector.c b/selector.c index 7cea39d..11265c6 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 Francois Fleuret + * Copyright (c) 2009, 2010 Francois Fleuret * Written by Francois Fleuret * * This file is part of selector. @@ -803,9 +803,9 @@ static struct option long_options[] = { int main(int argc, char **argv) { char input_filename[BUFFER_SIZE], output_filename[BUFFER_SIZE]; - char c, *s; + char *s; char pattern[BUFFER_SIZE]; - int k, l, n; + int c, k, l, n; int cursor_position; int error = 0, show_help = 0; int rest_are_files = 0;