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

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.