diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-11-21 17:14:54 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-11-21 17:14:54 +0000 |
commit | d415d3d87cd112d26b6508d377be30f3b1d9771c (patch) | |
tree | 44355aa9144fb53b62a4748d10dc34bb39adb67a /capture_opts.h | |
parent | 03f4fa5223c5bfe90d79bcf94f34ffd2d87d78d2 (diff) |
On error, have capture_opts_trim_iface() return the exit status that
should be used (on success, have it return 0). Exit with that exit
status; if the problem is that we couldn't get the interface list or if
there are no interfaces in that list, return 2, as that's not a
command-line syntax error.
svn path=/trunk/; revision=46108
Diffstat (limited to 'capture_opts.h')
-rw-r--r-- | capture_opts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h index a962492a1b..236d371bf5 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -264,7 +264,7 @@ extern void capture_opts_trim_ring_num_files(capture_options *capture_opts); /* trim the interface entry */ -extern gboolean +extern int capture_opts_trim_iface(capture_options *capture_opts, const char *capture_device); extern void |