diff --git a/lib/extra_opts.c b/lib/extra_opts.c
index 8c17fa4ae37eb07f187f671d1c37f27e47ffdb59..2939c7a14e1ad80364c8a822664f4ae41b8b4ee3 100644 (file)
--- a/lib/extra_opts.c
+++ b/lib/extra_opts.c
* License: GPL
* Copyright (c) 2007 Nagios Plugins Development Team
*
-* Last Modified: $Date: 2008-03-15 18:42:01 -0400 (Sat, 15 Mar 2008) $
-*
-*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
-* $Id: parse_ini.c 1950 2008-03-15 22:42:01Z dermoth $
-*
*****************************************************************************/
#include "common.h"
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 */
ea_tmp=extra_args;
while(ea_tmp->next) {
ea_tmp=ea_tmp->next;
- ea_num++;
}
ea_tmp->next=ea1;
+ while(ea1=ea1->next) ea_num++;
}
ea1=ea_tmp=NULL;
}
- /* lather, rince, repeat */
- }
+ } /* lather, rince, repeat */
if(ea_num==*argc && extra_args==NULL){
/* No extra-opts */