[Nagiosplug-checkins] SF.net SVN: nagiosplug:[2035] nagiosplug/trunk/lib

dermoth at users.sourceforge.net dermoth at users.sourceforge.net
Thu Aug 21 06:17:25 CEST 2008


Revision: 2035
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=2035&view=rev
Author:   dermoth
Date:     2008-08-21 04:17:25 +0000 (Thu, 21 Aug 2008)

Log Message:
-----------
Typos in comments

Modified Paths:
--------------
    nagiosplug/trunk/lib/parse_ini.c
    nagiosplug/trunk/lib/parse_ini.h
    nagiosplug/trunk/lib/tests/test_opts.c

Modified: nagiosplug/trunk/lib/parse_ini.c
===================================================================
--- nagiosplug/trunk/lib/parse_ini.c	2008-08-16 04:47:32 UTC (rev 2034)
+++ nagiosplug/trunk/lib/parse_ini.c	2008-08-21 04:17:25 UTC (rev 2035)
@@ -304,7 +304,7 @@
 	size_t len;
 
 	if((np_env=getenv("NAGIOS_CONFIG_PATH"))!=NULL) {
-		/* skip ant starting colon... */
+		/* skip any starting colon... */
 		while(*np_env==':') np_env++;
 		/* Look for NP_DEFAULT_INI_FILENAME1 and NP_DEFAULT_INI_FILENAME2 in
 		 * every PATHs defined (colon-separated).
@@ -340,8 +340,8 @@
 			default_file=strdup(temp_file);
 	}
 
-	/* Return default_file or empty string (should return NULL if we want to
-	 * die there...
+	/* Return default_file or empty string (should return NULL if we want plugins
+	 * to die there)...
 	 */
 	if(default_file)
 		return default_file;
@@ -354,7 +354,7 @@
 static int test_file(const char* env, int len, const char* file, char* temp_file){
 	struct stat sb;
 
-	/* test for len + filelen + '/' + '\0' */
+	/* test if len + filelen + '/' + '\0' fits in temp_file */
 	if((len+strlen(file)+2)>MAX_INPUT_BUFFER)	return -1;
 
 	strncpy(temp_file,env,len);

Modified: nagiosplug/trunk/lib/parse_ini.h
===================================================================
--- nagiosplug/trunk/lib/parse_ini.h	2008-08-16 04:47:32 UTC (rev 2034)
+++ nagiosplug/trunk/lib/parse_ini.h	2008-08-21 04:17:25 UTC (rev 2035)
@@ -14,7 +14,7 @@
 } np_arg_list;
 
 /* FIXME: This is in plugins/common.c. Should be eventually moved to lib/
- * (although for this particular one  a configure settings should be ideal)
+ * (although for this particular one a configure settings should be ideal)
  */
 #ifndef MAX_INPUT_BUFFER
 # define MAX_INPUT_BUFFER 8192

Modified: nagiosplug/trunk/lib/tests/test_opts.c
===================================================================
--- nagiosplug/trunk/lib/tests/test_opts.c	2008-08-16 04:47:32 UTC (rev 2034)
+++ nagiosplug/trunk/lib/tests/test_opts.c	2008-08-21 04:17:25 UTC (rev 2035)
@@ -145,7 +145,7 @@
 	ok(array_diff(argc_test, argv_test, 7, argv_known), "twice extra opts using two sections");
 	my_free(&argc_test,argv_test);
 
-	/* Next three checks dre expected to die. They are commented out as they
+	/* Next three checks are expected to die. They are commented out as they
 	 * could possibly go in a sepatare test checked for return value.
 	 */
 	/* argv_test=(char **)malloc(6*sizeof(char **));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list