aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-05 12:50:47 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-05 12:50:47 +0000
commit3b752b1b855878882538e1f4824bffcf512ee09a (patch)
tree4c0708acb2b9e723f33135ba031b4809171c48d9 /capture_sync.c
parent5ba8faf0c523b399e2297dc254957b51d9650826 (diff)
Put "cf_status_t" back.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13303 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/capture_sync.c b/capture_sync.c
index d74e076bec..3ca4403ee8 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -539,7 +539,7 @@ sync_pipe_input_cb(gint source, gpointer user_data)
XXX - do something if this fails? */
switch (cf_finish_tail(capture_opts->cf, &err)) {
- case CF_OK:
+ case CF_READ_OK:
if(cf_packet_count(capture_opts->cf) == 0) {
simple_dialog(ESD_TYPE_INFO, ESD_BTN_OK,
"%sNo packets captured!%s\n\n"
@@ -549,13 +549,13 @@ sync_pipe_input_cb(gint source, gpointer user_data)
cf_close(capture_opts->cf);
}
break;
- case CF_ERROR:
+ case CF_READ_ERROR:
/* Just because we got an error, that doesn't mean we were unable
to read any of the file; we handle what we could get from the
file. */
break;
- case CF_ABORTED:
+ case CF_READ_ABORTED:
/* Exit by leaving the main loop, so that any quit functions
we registered get called. */
main_window_quit();
@@ -630,8 +630,8 @@ sync_pipe_input_cb(gint source, gpointer user_data)
XXX - do something if this fails? */
switch (cf_continue_tail(capture_opts->cf, to_read, &err)) {
- case CF_OK:
- case CF_ERROR:
+ case CF_READ_OK:
+ case CF_READ_ERROR:
/* Just because we got an error, that doesn't mean we were unable
to read any of the file; we handle what we could get from the
file.
@@ -639,7 +639,7 @@ sync_pipe_input_cb(gint source, gpointer user_data)
XXX - abort on a read error? */
break;
- case CF_ABORTED:
+ case CF_READ_ABORTED:
/* Kill the child capture process; the user wants to exit, and we
shouldn't just leave it running. */
kill_capture_child(capture_opts);