summaryrefslogtreecommitdiffstats
path: root/plugins/check_hpjd.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 (GMT)
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 044f08f..c815cc7 100644
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
@@ -123,7 +123,7 @@ main (int argc, char **argv)
123 HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY); 123 HPJD_GD_DOOR_OPEN, HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);
124 124
125 /* get the command to run */ 125 /* get the command to run */
126 sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community, 126 sprintf (command_line, "%s -OQa -m : -v 1 -c %s %s %s", PATH_TO_SNMPGET, community,
127 address, query_string); 127 address, query_string);
128 128
129 /* run the command */ 129 /* run the command */
@@ -198,7 +198,7 @@ main (int argc, char **argv)
198 strcpy (display_message, temp_buffer + 1); 198 strcpy (display_message, temp_buffer + 1);
199 break; 199 break;
200 default: /* fold multiline message */ 200 default: /* fold multiline message */
201 strncat (display_message, input_buffer, 201 strncat (display_message, input_buffer,
202 sizeof (display_message) - strlen (display_message) - 1); 202 sizeof (display_message) - strlen (display_message) - 1);
203 } 203 }
204 204
@@ -218,7 +218,7 @@ main (int argc, char **argv)
218 sprintf (errmsg, "%s", input_buffer ); 218 sprintf (errmsg, "%s", input_buffer );
219 219
220 } 220 }
221 221
222 /* close stderr */ 222 /* close stderr */
223 (void) fclose (child_stderr); 223 (void) fclose (child_stderr);
224 224
@@ -232,7 +232,7 @@ main (int argc, char **argv)
232 /* might not be the problem, but most likely is. */ 232 /* might not be the problem, but most likely is. */
233 result = STATE_UNKNOWN ; 233 result = STATE_UNKNOWN ;
234 asprintf (&errmsg, "%s : Timeout from host %s\n", errmsg, address ); 234 asprintf (&errmsg, "%s : Timeout from host %s\n", errmsg, address );
235 235
236 } 236 }
237 237
238 /* if we had no read errors, check the printer status results... */ 238 /* if we had no read errors, check the printer status results... */
@@ -326,7 +326,7 @@ process_arguments (int argc, char **argv)
326 if (argc < 2) 326 if (argc < 2)
327 return ERROR; 327 return ERROR;
328 328
329 329
330 while (1) { 330 while (1) {
331 c = getopt_long (argc, argv, "+hVH:C:", longopts, &option); 331 c = getopt_long (argc, argv, "+hVH:C:", longopts, &option);
332 332
@@ -365,7 +365,7 @@ process_arguments (int argc, char **argv)
365 usage2 (_("Invalid hostname/address"), argv[c]); 365 usage2 (_("Invalid hostname/address"), argv[c]);
366 } 366 }
367 } 367 }
368 368
369 if (community == NULL) { 369 if (community == NULL) {
370 if (argv[c] != NULL ) 370 if (argv[c] != NULL )
371 community = argv[c]; 371 community = argv[c];