aboutsummaryrefslogtreecommitdiff
path: root/lib/extra_opts.h
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-03-30 14:02:13 +0000
committerGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-03-30 14:02:13 +0000
commit8aa5ec317af49d811b1c4b65c905cca81f845321 (patch)
tree8dbf98859c71ae6c056bf23901f0e63482d99144 /lib/extra_opts.h
parentdf93abdbaf6fe9efdf41cfa822c4d3a816830ddb (diff)
downloadmonitoring-plugins-8aa5ec317af49d811b1c4b65c905cca81f845321.tar.gz
- Remove the last argument of np_extra_opts
- Code cleanups and comments git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1967 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/extra_opts.h')
-rw-r--r--lib/extra_opts.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/extra_opts.h b/lib/extra_opts.h
index 5f89d2b2..25bfc6db 100644
--- a/lib/extra_opts.h
+++ b/lib/extra_opts.h
@@ -7,9 +7,13 @@
*/
/* np_extra_opts: Process the --extra-opts arguments and create a new argument
- * array load the default configuration (if present) for
- * a plugin from the ini file
+ * array with ini-processed and argument-passed arguments together. The
+ * ini-procesed arguments always come first (in the ord of --extra-opts
+ * arguments). If no --extra-opts arguments are provided or returned nothing
+ * it returns **argv otherwise the new array is returned. --extra-opts are
+ * always removed from **argv and the new array and all its elements can be
+ * freed with free();
*/
-char **np_extra_opts(int argc, char **argv, const char *plugin_name, int *argc_new);
+char **np_extra_opts(int *argc, char **argv, const char *plugin_name);
#endif /* _EXTRA_OPTS_H_ */