aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_hpjd.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-11-19 06:45:18 +0000
committerGravatar Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> 2008-11-19 06:45:18 +0000
commitcaa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch)
tree118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/check_hpjd.c
parent16f53e0717b60660145388b0feb351628f606211 (diff)
downloadmonitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_hpjd.c')
-rw-r--r--plugins/check_hpjd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 044f08f6..c815cc70 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -123,7 +123,7 @@ main (int argc, char **argv)
HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
/* get the command to run */
- sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community,
+ sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community,
address, query_string);
/* run the command */
@@ -198,7 +198,7 @@ main (int argc, char **argv)
strcpy (display_message, temp_buffer + 1);
break;
default: /* fold multiline message */
- strncat (display_message, input_buffer,
+ strncat (display_message, input_buffer,
sizeof (display_message) - strlen (display_message) - 1);
}
@@ -218,7 +218,7 @@ main (int argc, char **argv)
sprintf (errmsg, "%s", input_buffer );
}
-
+
/* close stderr */
(void) fclose (child_stderr);
@@ -232,7 +232,7 @@ main (int argc, char **argv)
/* might not be the problem, but most likely is. */
result = STATE_UNKNOWN ;
asprintf (&errmsg, "%s : Timeout from host %s\n", errmsg, address );
-
+
}
/* if we had no read errors, check the printer status results... */
@@ -326,7 +326,7 @@ process_arguments (int argc, char **argv)
if (argc < 2)
return ERROR;
-
+
while (1) {
c = getopt_long (argc, argv, "+hVH:C:", longopts, &option);
@@ -365,7 +365,7 @@ process_arguments (int argc, char **argv)
usage2 (_("Invalid hostname/address"), argv[c]);
}
}
-
+
if (community == NULL) {
if (argv[c] != NULL )
community = argv[c];