[Nagios-devel] some minor Typos in 3.0a1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] some minor Typos in 3.0a1

Post by Guest »

This is a multi-part message in MIME format.
--------------020008010508010101070302
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ethan,

when configuring with --enable-DEBUGALL, there are some minor typos in
base/config.c, base/utils.c
and xdata/xodtemplate.c.
Details see attachments,

regards,

Peter


--------------020008010508010101070302
Content-Type: text/plain;
name="nagios-3.0a1.p1.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-3.0a1.p1.txt"

--- config.c.bak 2007-03-13 13:04:47.000000000 +0100
+++ config.c 2007-03-13 13:05:01.000000000 +0100
@@ -1204,7 +1204,7 @@
check_orphaned_hosts=(atoi(value)>0)?TRUE:FALSE;

#ifdef DEBUG1
- printf("\t\tcheck_orphaned_hosts set to %s\n",(check_orphaned_host==TRUE)?"TRUE":"FALSE");
+ printf("\t\tcheck_orphaned_hosts set to %s\n",(check_orphaned_hosts==TRUE)?"TRUE":"FALSE");
#endif
}
--------------020008010508010101070302
Content-Type: text/plain;
name="nagios-3.0a1.p2.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-3.0a1.p2.txt"

--- utils.c.bak 2007-03-01 19:19:15.000000000 +0100
+++ utils.c 2007-03-13 13:16:20.000000000 +0100
@@ -2940,7 +2940,7 @@
printf("get_raw_command_line() start\n");
#endif
#ifdef DEBUG1
- printf("\tInput: %s\n",cmd);
+ printf("\tInput: %s\n",cmd_ptr);
#endif

/* clear the argv macros */

--------------020008010508010101070302
Content-Type: text/plain;
name="nagios-3.0a1.p3.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-3.0a1.p3.txt"

--- xodtemplate.c.bak 2007-03-06 16:24:51.000000000 +0100
+++ xodtemplate.c 2007-03-13 13:57:02.000000000 +0100
@@ -2826,7 +2826,7 @@
/* add the custom variable */
if(xodtemplate_add_custom_variable_to_contact(temp_contact,customvarname,customvarvalue)==NULL){
#ifdef DEBUG1
- printf("Error: Could not add custom variable '%s' for contact.\n",varname);
+ printf("Error: Could not add custom variable '%s' for contact.\n",customvarname);
#endif
my_free((void **)&customvarname);
my_free((void **)&customvarvalue);
@@ -3262,7 +3262,7 @@
/* add the custom variable */
if(xodtemplate_add_custom_variable_to_host(temp_host,customvarname,customvarvalue)==NULL){
#ifdef DEBUG1
- printf("Error: Could not add custom variable '%s' for host.\n",varname);
+ printf("Error: Could not add custom variable '%s' for host.\n",customvarname);
#endif
my_free((void **)&customvarname);
my_free((void **)&customvarvalue);
@@ -3657,7 +3657,7 @@
/* add the custom variable */
if(xodtemplate_add_custom_variable_to_service(temp_service,customvarname,customvarvalue)==NULL){
#ifdef DEBUG1
- printf("Error: Could not add custom variable '%s' for service.\n",varname);
+ printf("Error: Could not add custom variable '%s' for service.\n",customvarname);
#endif
my_free((void **)&customvarname);
my_free((void **)&customvarvalue);

--------------020008010508010101070302--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked