ongrep

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

commit e44e8f90e6692e7bb87361c4acd8f56067736490
parent 82e072b5fe5afb6812eb5fcf917fce210f1d7d27
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Mon, 29 Dec 2003 00:52:15 +0000

enforce incompatibility between -x and -W

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

diff --git a/ngrep.c b/ngrep.c @@ -217,6 +217,10 @@ int main(int argc, char **argv) { } } + if (show_hex && dump_func != &dump_formatted) { + printf("fatal: -x (hex dump) is incompatible with -W (alternate format)\n"); + usage(-1); + } if (argv[optind]) match_data = argv[optind++];