commit c4fafd4b69eaad4074b91a4befb01cd75259bbad parent 641bf0662ea91d82c1fead4ca741aa5bce5d2de7 Author: Jordan Ritter <jpr5@darkridge.com> Date: Wed, 16 Feb 2005 06:18:44 +0000 clean up casts for raw (default) case Diffstat:
M | ngrep.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ngrep.c b/ngrep.c @@ -771,7 +771,7 @@ void process(u_char *data1, struct pcap_pkthdr* h, u_char *p) { } break; default: { - data = ((char*)((char *)ip_packet) + ip_hl);; + data = (char*)(((char*)ip_packet) + ip_hl); if ((len = ntohs(ip_packet->ip_len)) < h->caplen) len -= ip_hl;