diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-15 23:48:32 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-15 23:48:32 +0000 |
commit | bf8e740cf9792347bde468b424f10b2c1e0245ab (patch) | |
tree | b328bca14831298429af1d63ab56fd4687ff6181 /src/skaembutils/s6-grep.c | |
parent | 056f4c89bf09b7b80b5afe037e2373a91e9f8998 (diff) | |
download | s6-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.c | 8 |
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) |