Have "do_capture()" take, as an argument, a pointer to the name of the
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 2 Oct 1999 06:26:53 +0000 (06:26 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 2 Oct 1999 06:26:53 +0000 (06:26 +0000)
commitb2e1a191153a0235b895a7ee2652dd4946c459c4
tree9f2cb87a1cd94a248effb10003607de9a46abc33
parenta875fb68d24ee02083c1f5b6c4cc3342625167da
Have "do_capture()" take, as an argument, a pointer to the name of the
file to which to write the capture; if it's NULL, create a temporary
file and use that.

Have "-w" set a local variable, which starts out null, and, for "-k"
captures, call "do_capture()" and pass it that local variable as an
argument; this lets you do "-k" without "-w", which makes it use a
temporary file for the capture.

This means "run_capture()" no longer serves a useful purpose, as its
only caller is "do_capture()"; swallow it into "do_capture()".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@748 f5534014-38df-0310-8fa8-9805f1628bb7
capture.c
capture.h
gtk/capture_dlg.c
gtk/main.c