summaryrefslogtreecommitdiffstats
path: root/lib/extra_opts.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-04-04 10:11:22 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-04-04 10:11:22 (GMT)
commit2a4640f6719b9688a68b796f697209b9b14cd179 (patch)
treec90a814eba255846196eede28260c3b64e391e8b /lib/extra_opts.c
parent815fbd802f1aeee32d3d1b3751bf294e46a4c090 (diff)
downloadmonitoring-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/extra_opts.c b/lib/extra_opts.c
index 8c17fa4..b555417 100644
--- a/lib/extra_opts.c
+++ b/lib/extra_opts.c
@@ -35,11 +35,11 @@ int
35is_option2 (char *str) 35is_option2 (char *str)
36{ 36{
37 if (!str) 37 if (!str)
38 return 0; 38 return FALSE;
39 else if (strspn (str, "-") == 1 || strspn (str, "-") == 2) 39 else if (strspn (str, "-") == 1 || strspn (str, "-") == 2)
40 return 1; 40 return TRUE;
41 else 41 else
42 return 0; 42 return FALSE;
43} 43}
44 44
45/* this is the externally visible function used by plugins */ 45/* this is the externally visible function used by plugins */