summaryrefslogtreecommitdiff
path: root/clopts_common.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-11-17 05:59:21 +0000
committerGuy Harris <guy@alum.mit.edu>2005-11-17 05:59:21 +0000
commit2f7fd680e20345bbda6731cd041ee9ed0a04690f (patch)
tree9e6da69ba8d3c7b296f4f2d93963fe0a43cbead6 /clopts_common.h
parent7586ab64db1b8124d5eaf91974e7237760b9ae63 (diff)
downloadwireshark-2f7fd680e20345bbda6731cd041ee9ed0a04690f.tar.gz
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 'clopts_common.h')
-rw-r--r--clopts_common.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/clopts_common.h b/clopts_common.h
index d4862f8575..461fad4bb3 100644
--- a/clopts_common.h
+++ b/clopts_common.h
@@ -29,15 +29,9 @@
extern "C" {
#endif /* __cplusplus */
-/*
- * Handle the "-G" option, to cause protocol field, etc. information
- * to be printed.
- */
-void handle_dashG_option(int argc, char **argv, const char *progname);
-
-int get_natural_int(const char *appname, const char *string, const char *name);
+int get_natural_int(const char *string, const char *name);
-int get_positive_int(const char *appname, const char *string, const char *name);
+int get_positive_int(const char *string, const char *name);
#ifdef __cplusplus
}