aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-11-28 00:19:49 +0000
committerGuy Harris <guy@alum.mit.edu>2010-11-28 00:19:49 +0000
commite2ed373a5e3107814d4709f609334db2a4a1397a (patch)
tree438f94062885017382501157f47d7fdc8178fd80 /capture.c
parenteda0f472c93147b6946d9175809d8b38162abb66 (diff)
Clean up white space.
svn path=/trunk/; revision=35047
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/capture.c b/capture.c
index de5ce79633..e45fde9313 100644
--- a/capture.c
+++ b/capture.c
@@ -136,7 +136,7 @@ capture_start(capture_options *capture_opts)
GString *source = g_string_new("");
if (capture_opts->state != CAPTURE_STOPPED)
- return FALSE;
+ return FALSE;
capture_opts->state = CAPTURE_PREPARING;
/* close the currently loaded capture file */
@@ -534,16 +534,16 @@ capture_input_closed(capture_options *capture_opts, gchar *msg)
}
if(capture_opts->real_time_mode) {
- cf_read_status_t status;
+ cf_read_status_t status;
/* Read what remains of the capture file. */
status = cf_finish_tail(capture_opts->cf, &err);
/* XXX: If -Q (quit-after-cap) then cf->count clr'd below so save it first */
- packet_count_save = cf_get_packet_count(capture_opts->cf);
+ packet_count_save = cf_get_packet_count(capture_opts->cf);
/* Tell the GUI we are not doing a capture any more.
- Must be done after the cf_finish_tail(), so file lengths are
- correctly displayed */
+ Must be done after the cf_finish_tail(), so file lengths are
+ correctly displayed */
capture_callback_invoke(capture_cb_capture_update_finished, capture_opts);
/* Finish the capture. */
@@ -642,12 +642,12 @@ capture_stat_start(GList *if_list) {
*
* This means that
*
- * 1) this might fail if you run out of BPF devices
+ * 1) this might fail if you run out of BPF devices
*
* and
*
- * 2) opening every interface could leave too few BPF devices
- * for *other* programs.
+ * 2) opening every interface could leave too few BPF devices
+ * for *other* programs.
*
* It also means the system could end up getting a lot of traffic
* that it has to pass through the networking stack and capture
@@ -734,7 +734,7 @@ capture_stat_stop(if_stat_cache_t *sc) {
ret = sync_interface_stats_close(&sc->stat_fd, &sc->fork_child, &msg);
if (ret == -1) {
- /* XXX - report failure? */
+ /* XXX - report failure? */
g_free(msg);
}