summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-grep.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-15 23:48:32 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-15 23:48:32 +0000
commitbf8e740cf9792347bde468b424f10b2c1e0245ab (patch)
treeb328bca14831298429af1d63ab56fd4687ff6181 /src/skaembutils/s6-grep.c
parent056f4c89bf09b7b80b5afe037e2373a91e9f8998 (diff)
downloads6-portable-utils-bf8e740cf9792347bde468b424f10b2c1e0245ab.tar.xz
Fix include order in Makefile, remove gcc warning
Diffstat (limited to 'src/skaembutils/s6-grep.c')
-rw-r--r--src/skaembutils/s6-grep.c8
1 files changed, 2 insertions, 6 deletions
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)