diff options
Diffstat (limited to 'plugins/negate.c')
| -rw-r--r-- | plugins/negate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/negate.c b/plugins/negate.c index beaed1ea..50f62d33 100644 --- a/plugins/negate.c +++ b/plugins/negate.c | |||
| @@ -59,8 +59,8 @@ static int state[4] = { | |||
| 59 | int | 59 | int |
| 60 | main (int argc, char **argv) | 60 | main (int argc, char **argv) |
| 61 | { | 61 | { |
| 62 | int found = 0, result = STATE_UNKNOWN; | 62 | int result = STATE_UNKNOWN; |
| 63 | char *buf, *sub; | 63 | char *sub; |
| 64 | char **command_line; | 64 | char **command_line; |
| 65 | output chld_out, chld_err; | 65 | output chld_out, chld_err; |
| 66 | int i; | 66 | int i; |
| @@ -86,11 +86,9 @@ main (int argc, char **argv) | |||
| 86 | result = cmd_run_array (command_line, &chld_out, &chld_err, 0); | 86 | result = cmd_run_array (command_line, &chld_out, &chld_err, 0); |
| 87 | } | 87 | } |
| 88 | if (chld_err.lines > 0) { | 88 | if (chld_err.lines > 0) { |
| 89 | printf ("Error output from command:\n"); | ||
| 90 | for (i = 0; i < chld_err.lines; i++) { | 89 | for (i = 0; i < chld_err.lines; i++) { |
| 91 | printf ("%s\n", chld_err.line[i]); | 90 | fprintf (stderr, "%s\n", chld_err.line[i]); |
| 92 | } | 91 | } |
| 93 | exit (STATE_WARNING); | ||
| 94 | } | 92 | } |
| 95 | 93 | ||
| 96 | /* Return UNKNOWN or worse if no output is returned */ | 94 | /* Return UNKNOWN or worse if no output is returned */ |
