diff options
author | Guy Harris <guy@alum.mit.edu> | 2006-03-21 09:36:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2006-03-21 09:36:07 +0000 |
commit | 0129bb146cb744a1f3420b18a6412e8b4cc5e3db (patch) | |
tree | ff86ce3cb995f0233949c7b4d94e0cedc3124a97 /tethereal.c | |
parent | f4248f455df0e4c46429abc49947a4860e1d6020 (diff) |
Simplify the argument list to cap_pipe_dispatch().
svn path=/trunk/; revision=17690
Diffstat (limited to 'tethereal.c')
-rw-r--r-- | tethereal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tethereal.c b/tethereal.c index 30176210d9..982b994fca 100644 --- a/tethereal.c +++ b/tethereal.c @@ -1689,11 +1689,10 @@ capture(void) } #ifndef _WIN32 if (ld.from_cap_pipe) { - inpkts = cap_pipe_dispatch(ld.cap_pipe_fd, &ld, &ld.cap_pipe_hdr, &ld.cap_pipe_rechdr, pcap_data, - errmsg, sizeof errmsg); + inpkts = cap_pipe_dispatch(&ld, pcap_data, errmsg, sizeof errmsg); } else #endif - inpkts = pcap_dispatch(ld.pcap_h, pcap_cnt, capture_pcap_cb, (u_char *) &ld); + inpkts = pcap_dispatch(ld.pcap_h, pcap_cnt, ld.packet_cb, (u_char *) &ld); if (inpkts < 0) { /* Error from "pcap_dispatch()", or error or "no more packets" from "cap_pipe_dispatch(). */ |