ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit 10943470989f2c0c1e7c037a3de7b7d699d64172
parent 4237d5878d5cee7db5c8510f070e1cab0d5ae5e8
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Mon, 11 Sep 2006 13:02:48 +0000

oh ye gods of broken gcc optimization, I yield to thee! UNCLE, I SAY, UNCLE!

Diffstat:
Mngrep.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ngrep.c b/ngrep.c @@ -478,8 +478,10 @@ int main(int argc, char **argv) { s[i] = i + 32; s = match_data; - while (*s) - *s++ = tolower(*s); + while (*s) { + *s = tolower(*s); + s++; + } } else pattern.translate = NULL; #endif