summaryrefslogtreecommitdiffstats
path: root/lib/parse_ini.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-08-21 04:17:25 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-08-21 04:17:25 (GMT)
commit77362a18bac7e73a4f824736212acb7fd6f7dd1e (patch)
tree8df9990157aa798095dd7828f037f4e5f3b9ef92 /lib/parse_ini.c
parentdfca15116c95f5800312ee6b7346802bdc6c3724 (diff)
downloadmonitoring-plugins-77362a18bac7e73a4f824736212acb7fd6f7dd1e.tar.gz
Typos in comments
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2035 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/parse_ini.c')
-rw-r--r--lib/parse_ini.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c
index 96551cf..654452d 100644
--- a/lib/parse_ini.c
+++ b/lib/parse_ini.c
@@ -304,7 +304,7 @@ static char* default_file(void){
304 size_t len; 304 size_t len;
305 305
306 if((np_env=getenv("NAGIOS_CONFIG_PATH"))!=NULL) { 306 if((np_env=getenv("NAGIOS_CONFIG_PATH"))!=NULL) {
307 /* skip ant starting colon... */ 307 /* skip any starting colon... */
308 while(*np_env==':') np_env++; 308 while(*np_env==':') np_env++;
309 /* Look for NP_DEFAULT_INI_FILENAME1 and NP_DEFAULT_INI_FILENAME2 in 309 /* Look for NP_DEFAULT_INI_FILENAME1 and NP_DEFAULT_INI_FILENAME2 in
310 * every PATHs defined (colon-separated). 310 * every PATHs defined (colon-separated).
@@ -340,8 +340,8 @@ static char* default_file(void){
340 default_file=strdup(temp_file); 340 default_file=strdup(temp_file);
341 } 341 }
342 342
343 /* Return default_file or empty string (should return NULL if we want to 343 /* Return default_file or empty string (should return NULL if we want plugins
344 * die there... 344 * to die there)...
345 */ 345 */
346 if(default_file) 346 if(default_file)
347 return default_file; 347 return default_file;
@@ -354,7 +354,7 @@ static char* default_file(void){
354static int test_file(const char* env, int len, const char* file, char* temp_file){ 354static int test_file(const char* env, int len, const char* file, char* temp_file){
355 struct stat sb; 355 struct stat sb;
356 356
357 /* test for len + filelen + '/' + '\0' */ 357 /* test if len + filelen + '/' + '\0' fits in temp_file */
358 if((len+strlen(file)+2)>MAX_INPUT_BUFFER) return -1; 358 if((len+strlen(file)+2)>MAX_INPUT_BUFFER) return -1;
359 359
360 strncpy(temp_file,env,len); 360 strncpy(temp_file,env,len);