From caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 19 Nov 2008 06:45:18 +0000 Subject: 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 --- plugins/check_hpjd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/check_hpjd.c') 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]; -- cgit v1.2.3