diff options
Diffstat (limited to 'plugins/check_apt.c')
-rw-r--r-- | plugins/check_apt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 5aaf1eb6..80ce6060 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
@@ -374,8 +374,8 @@ run_upgrade_result run_upgrade(const upgrade_type upgrade, const char *do_includ | |||
374 | die(STATE_UNKNOWN, _("%s: Error compiling regexp: %s"), progname, rerrbuf); | 374 | die(STATE_UNKNOWN, _("%s: Error compiling regexp: %s"), progname, rerrbuf); |
375 | } | 375 | } |
376 | 376 | ||
377 | struct output chld_out; | 377 | output chld_out; |
378 | struct output chld_err; | 378 | output chld_err; |
379 | char *cmdline = NULL; | 379 | char *cmdline = NULL; |
380 | cmdline = construct_cmdline(upgrade, upgrade_opts); | 380 | cmdline = construct_cmdline(upgrade, upgrade_opts); |
381 | if (input_filename != NULL) { | 381 | if (input_filename != NULL) { |
@@ -492,8 +492,8 @@ run_update_result run_update(char *update_opts) { | |||
492 | result.sc = mp_set_subcheck_default_state(result.sc, STATE_OK); | 492 | result.sc = mp_set_subcheck_default_state(result.sc, STATE_OK); |
493 | xasprintf(&result.sc.output, "executing '%s' first", cmdline); | 493 | xasprintf(&result.sc.output, "executing '%s' first", cmdline); |
494 | 494 | ||
495 | struct output chld_out; | 495 | output chld_out; |
496 | struct output chld_err; | 496 | output chld_err; |
497 | int cmd_error = np_runcmd(cmdline, &chld_out, &chld_err, 0); | 497 | int cmd_error = np_runcmd(cmdline, &chld_out, &chld_err, 0); |
498 | /* apt-get update changes exit status if it can't fetch packages. | 498 | /* apt-get update changes exit status if it can't fetch packages. |
499 | * since we were explicitly asked to do so, this is treated as | 499 | * since we were explicitly asked to do so, this is treated as |