path: root/capture_opts.h
diff options
authorUlf Lamping <ulf.lamping@web.de>2006-02-10 02:05:30 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-02-10 02:05:30 +0000
commite4e8df5e1d7baea590c02edf369c65e82ffaece2 (patch)
treee906ceda128cc5fd13c23de04c9414e5864af895 /capture_opts.h
parent0d9c276e901f8a3e5de9ae2502a078ffb3d90064 (diff)
remove all calls to exit() from the capture_opts.c and replace them by status return values (0,1 or 2).
This way makes it much easier to debug, e.g. to set a common breakpoint if a command line parameter fails. svn path=/trunk/; revision=17240
Diffstat (limited to 'capture_opts.h')
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 7bf7c177ea..178757e2c8 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -103,7 +103,7 @@ extern void
capture_opts_init(capture_options *capture_opts, void *cfile);
/* set a command line option value */
-extern void
+extern int
capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg, gboolean *start_capture);
/* log content of capture_opts */
@@ -111,11 +111,11 @@ extern void
capture_opts_log(const char *log_domain, GLogLevelFlags log_level, capture_options *capture_opts);
/* list link layer types */
-extern void
+extern int
capture_opts_list_link_layer_types(capture_options *capture_opts);
/* list interfaces */
-extern void
+extern int
/* trim the snaplen entry */