From 8aa5ec317af49d811b1c4b65c905cca81f845321 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Sun, 30 Mar 2008 14:02:13 +0000 Subject: - 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 --- lib/extra_opts.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/extra_opts.h') 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_ */ -- cgit v1.2.3