From bf8e740cf9792347bde468b424f10b2c1e0245ab Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Dec 2014 23:48:32 +0000 Subject: Fix include order in Makefile, remove gcc warning --- src/skaembutils/s6-grep.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/skaembutils/s6-grep.c') diff --git a/src/skaembutils/s6-grep.c b/src/skaembutils/s6-grep.c index cd991e7..b42e807 100644 --- a/src/skaembutils/s6-grep.c +++ b/src/skaembutils/s6-grep.c @@ -56,12 +56,8 @@ int main (int argc, char const *const *argv) stralloc line = STRALLOC_ZERO ; regex_t re ; unsigned int num = 0 ; - unsigned int arglen ; - if (flags.fixed) - { - if (flags.ignorecase) arglen = str_len(argv[0]) ; - } - else + unsigned int arglen = str_len(argv[0]) ; + if (!flags.fixed) { register int e = regcomp(&re, argv[0], REG_NOSUB | (flags.extended ? REG_EXTENDED : 0) | (flags.ignorecase ? REG_ICASE : 0)) ; if (e) -- cgit v1.2.3