diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-11-17 05:59:21 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-11-17 05:59:21 +0000 |
commit | 2f7fd680e20345bbda6731cd041ee9ed0a04690f (patch) | |
tree | 9e6da69ba8d3c7b296f4f2d93963fe0a43cbead6 /capture.h | |
parent | 7586ab64db1b8124d5eaf91974e7237760b9ae63 (diff) | |
download | wireshark-2f7fd680e20345bbda6731cd041ee9ed0a04690f.tar.gz wireshark-2f7fd680e20345bbda6731cd041ee9ed0a04690f.tar.bz2 wireshark-2f7fd680e20345bbda6731cd041ee9ed0a04690f.zip |
Handle "-G" only in Tethereal - it doesn't work in Ethereal, and isn't
necessary there.
Add a "cmdarg_err()" routine to report command-line option errors; it
creates a console if necessary, and prints the command name and the
trailing newline. Also add "cmdarg_err_cont()", which also creates a
console if necessary, and prints a trailing newline but no command name;
it's used to continue the message. Use those, rather than
"g_warning()", for errors.
That means that we no longer need to pass the command name to various
command-line argument parsing routines.
svn path=/trunk/; revision=16526
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -104,7 +104,7 @@ extern void capture_opts_init(capture_options *capture_opts, void *cfile); extern void -capture_opts_add_opt(capture_options *capture_opts, const char *appname, int opt, const char *optarg, gboolean *start_capture); +capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg, gboolean *start_capture); /* log content of capture_opts */ extern void |