diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-04-04 10:11:22 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-04-04 10:11:22 +0000 |
commit | 2a4640f6719b9688a68b796f697209b9b14cd179 (patch) | |
tree | c90a814eba255846196eede28260c3b64e391e8b /lib/extra_opts.c | |
parent | 815fbd802f1aeee32d3d1b3751bf294e46a4c090 (diff) | |
download | monitoring-plugins-2a4640f6719b9688a68b796f697209b9b14cd179.tar.gz |
make parse_ini die like in N::P if section isn't found
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1976 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/extra_opts.c')
-rw-r--r-- | lib/extra_opts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/extra_opts.c b/lib/extra_opts.c index 8c17fa4a..b555417a 100644 --- a/lib/extra_opts.c +++ b/lib/extra_opts.c @@ -35,11 +35,11 @@ int is_option2 (char *str) { if (!str) - return 0; + return FALSE; else if (strspn (str, "-") == 1 || strspn (str, "-") == 2) - return 1; + return TRUE; else - return 0; + return FALSE; } /* this is the externally visible function used by plugins */ |