diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-21 09:36:07 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-21 09:36:07 +0000 |
commit | ad649acf4627922604cd2ccbd98fe7685fc6ba71 (patch) | |
tree | ff86ce3cb995f0233949c7b4d94e0cedc3124a97 /tethereal.c | |
parent | 21e83296b4e99b840246cafac333e88db38168aa (diff) |
Simplify the argument list to cap_pipe_dispatch().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17690 f5534014-38df-0310-8fa8-9805f1628bb7
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(). */ |