[Nagiosplug-checkins] nagiosplug/plugins check_ups.c,1.26,1.26.2.1 check_smtp.c,1.43,1.43.2.1 check_disk.c,1.56,1.56.2.1
Ton Voon
tonvoon at users.sourceforge.net
Fri Mar 4 14:12:28 CET 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv584
Modified Files:
Tag: r1_4-patches
check_ups.c check_smtp.c check_disk.c
Log Message:
Fixed // comments
Index: check_disk.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_disk.c,v
retrieving revision 1.56
retrieving revision 1.56.2.1
diff -u -d -r1.56 -r1.56.2.1
--- check_disk.c 25 Dec 2004 23:17:44 -0000 1.56
+++ check_disk.c 4 Mar 2005 22:10:58 -0000 1.56.2.1
@@ -19,7 +19,7 @@
*****************************************************************************/
const char *progname = "check_disk";
-const char *program_name = "check_disk"; // Required for coreutils libs
+const char *program_name = "check_disk"; /* Required for coreutils libs */
const char *revision = "$Revision$";
const char *copyright = "1999-2004";
const char *email = "nagiosplug-devel at lists.sourceforge.net";
Index: check_smtp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_smtp.c,v
retrieving revision 1.43
retrieving revision 1.43.2.1
diff -u -d -r1.43 -r1.43.2.1
--- check_smtp.c 1 Jan 2005 16:15:39 -0000 1.43
+++ check_smtp.c 4 Mar 2005 22:10:58 -0000 1.43.2.1
@@ -182,7 +182,7 @@
/* send the STARTTLS command */
send(sd, SMTP_STARTTLS, strlen(SMTP_STARTTLS), 0);
- recv(sd,buffer, MAX_INPUT_BUFFER-1, 0); // wait for it
+ recv(sd,buffer, MAX_INPUT_BUFFER-1, 0); /* wait for it */
if (!strstr (buffer, server_expect)) {
printf (_("Server does not support STARTTLS\n"));
return STATE_UNKNOWN;
@@ -254,8 +254,6 @@
if (n < nresponses) {
#ifdef HAVE_REGEX_H
cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
- //strncpy (regex_expect, responses[n], sizeof (regex_expect) - 1);
- //regex_expect[sizeof (regex_expect) - 1] = '\0';
errcode = regcomp (&preg, responses[n], cflags);
if (errcode != 0) {
regerror (errcode, &preg, errbuf, MAX_INPUT_BUFFER);
@@ -610,7 +608,7 @@
/* this causes a seg faul
not sure why, being sloppy
and commenting it out */
- // SSL_free (ssl);
+ /* SSL_free (ssl); */
SSL_CTX_free(ctx);
my_close();
Index: check_ups.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ups.c,v
retrieving revision 1.26
retrieving revision 1.26.2.1
diff -u -d -r1.26 -r1.26.2.1
--- check_ups.c 25 Dec 2004 23:17:44 -0000 1.26
+++ check_ups.c 4 Mar 2005 22:10:58 -0000 1.26.2.1
@@ -408,7 +408,7 @@
}
if (strcmp (ptr, "ERR VAR-NOT-SUPPORTED") == 0) {
- //printf ("Error: Variable '%s' is not supported\n", varname);
+ /*printf ("Error: Variable '%s' is not supported\n", varname);*/
return NOSUCHVAR;
}
More information about the Commits
mailing list