aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2005-03-04 21:58:40 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2005-03-04 21:58:40 +0000
commitd713c5de2508f74d8db18dffee61ad2bbd3fa8ed (patch)
tree56edcb992a5647bf3c5433962c06b1d5f42b454f /plugins
parenta78fd137e972f62deb6bd2370ef869d256b0bfae (diff)
downloadmonitoring-plugins-d713c5de2508f74d8db18dffee61ad2bbd3fa8ed.tar.gz
Fixed // comments (Steve Greenland - 1143836)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1146 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_disk.c2
-rw-r--r--plugins/check_smtp.c6
-rw-r--r--plugins/check_ups.c2
3 files changed, 4 insertions, 6 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index ab9f66f8..512344d4 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -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@lists.sourceforge.net";
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 3b0e4694..f23e5d03 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -182,7 +182,7 @@ main (int argc, char **argv)
/* 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 @@ main (int argc, char **argv)
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 @@ connect_STARTTLS (void)
/* 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();
diff --git a/plugins/check_ups.c b/plugins/check_ups.c
index 1cdf9e9e..e11332fc 100644
--- a/plugins/check_ups.c
+++ b/plugins/check_ups.c
@@ -408,7 +408,7 @@ get_ups_variable (const char *varname, char *buf, size_t buflen)
}
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;
}