[hackers] [sbase] grep: fix ARGC() || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sat, 9 Jun 2012 19:53:43 +0200 (CEST)

changeset: 143:9786fac13048
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat Jun 09 18:49:02 2012 +0100
files: grep.c
description:
grep: fix ARGC()


diff -r a5f091c1c5f8 -r 9786fac13048 grep.c
--- a/grep.c Thu May 31 19:38:25 2012 +0100
+++ b/grep.c Sat Jun 09 18:49:02 2012 +0100
_AT_@ -21,7 +21,6 @@
 int
 main(int argc, char *argv[])
 {
- char c;
         int i, n, flags = REG_NOSUB;
         regex_t preg;
         FILE *fp;
_AT_@ -34,7 +33,7 @@
         case 'l':
         case 'n':
         case 'q':
- mode = c;
+ mode = ARGC();
                 break;
         case 'i':
                 flags |= REG_ICASE;
Received on Sat Jun 09 2012 - 19:53:43 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 09 2012 - 20:00:16 CEST