diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-03-30 14:02:13 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-03-30 14:02:13 +0000 |
commit | 8aa5ec317af49d811b1c4b65c905cca81f845321 (patch) | |
tree | 8dbf98859c71ae6c056bf23901f0e63482d99144 /lib/extra_opts.h | |
parent | df93abdbaf6fe9efdf41cfa822c4d3a816830ddb (diff) | |
download | monitoring-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.h | 10 |
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 @@ | |||
7 | */ | 7 | */ |
8 | 8 | ||
9 | /* np_extra_opts: Process the --extra-opts arguments and create a new argument | 9 | /* np_extra_opts: Process the --extra-opts arguments and create a new argument |
10 | * array load the default configuration (if present) for | 10 | * array with ini-processed and argument-passed arguments together. The |
11 | * a plugin from the ini file | 11 | * ini-procesed arguments always come first (in the ord of --extra-opts |
12 | * arguments). If no --extra-opts arguments are provided or returned nothing | ||
13 | * it returns **argv otherwise the new array is returned. --extra-opts are | ||
14 | * always removed from **argv and the new array and all its elements can be | ||
15 | * freed with free(); | ||
12 | */ | 16 | */ |
13 | char **np_extra_opts(int argc, char **argv, const char *plugin_name, int *argc_new); | 17 | char **np_extra_opts(int *argc, char **argv, const char *plugin_name); |
14 | 18 | ||
15 | #endif /* _EXTRA_OPTS_H_ */ | 19 | #endif /* _EXTRA_OPTS_H_ */ |