ongrep

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

commit f6e6251ba1d593bafc04208018334b3616e82ab4
parent b839df64d84b2ae4eb1ec07f129313d69b808773
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Thu, 14 Dec 2006 00:07:14 +0000

eliminate gcc4 warning about unsigned char*/char* warning with re_search() call

Diffstat:
Mngrep.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ngrep.c b/ngrep.c @@ -921,7 +921,7 @@ int8_t re_match_func(unsigned char *data, uint32_t len, uint16_t *mindex, uint16 #else static struct re_registers regs; - switch (re_search(&pattern, data, (int32_t)len, 0, len, &regs)) { + switch (re_search(&pattern, (const char *)data, (int32_t)len, 0, len, &regs)) { case -2: perror("she's dead, jim\n"); clean_exit(-2);