From 2a4640f6719b9688a68b796f697209b9b14cd179 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Fri, 4 Apr 2008 10:11:22 +0000 Subject: 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 --- lib/extra_opts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/extra_opts.c') 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 */ -- cgit v1.2.3