ongrep

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

commit 5dd590e58a1a2cb4c4235847da630646d3e20daf
parent 8cd98b64eb51beb718d3ae21c2d53524097baf2c
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Sun, 14 Jun 2020 23:38:18 +1000

Remove unused headers and sort

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

diff --git a/ngrep.c b/ngrep.c @@ -5,18 +5,18 @@ * Please refer to the LICENSE file for more information. * */ -#include <sys/cdefs.h> -#include <sys/ioctl.h> +#include <sys/types.h> #include <sys/socket.h> +#include <sys/ioctl.h> #include <sys/time.h> -#include <sys/ttycom.h> -#include <sys/types.h> -#include <netinet/in.h> +#include <net/if.h> #include <net/ethertypes.h> + +#include <netinet/in.h> +#include <netinet/ip.h> #include <netinet/icmp6.h> #include <netinet/igmp.h> -#include <netinet/ip.h> #include <netinet/ip6.h> #include <netinet/ip_icmp.h> #include <netinet/tcp.h> @@ -33,7 +33,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <strings.h> #include <time.h> #include <unistd.h>