mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-29 01:59:08 -04:00
Fix types in check_apt
This commit is contained in:
parent
811da10fda
commit
15ecdb73ce
1 changed files with 4 additions and 4 deletions
|
|
@ -310,8 +310,8 @@ run_upgrade_result run_upgrade(const upgrade_type upgrade, const char *do_includ
|
|||
die(STATE_UNKNOWN, _("%s: Error compiling regexp: %s"), progname, rerrbuf);
|
||||
}
|
||||
|
||||
struct output chld_out;
|
||||
struct output chld_err;
|
||||
output chld_out;
|
||||
output chld_err;
|
||||
char *cmdline = NULL;
|
||||
cmdline = construct_cmdline(upgrade, upgrade_opts);
|
||||
if (input_filename != NULL) {
|
||||
|
|
@ -410,8 +410,8 @@ int run_update(char *update_opts) {
|
|||
/* run the update */
|
||||
cmdline = construct_cmdline(NO_UPGRADE, update_opts);
|
||||
|
||||
struct output chld_out;
|
||||
struct output chld_err;
|
||||
output chld_out;
|
||||
output chld_err;
|
||||
result = np_runcmd(cmdline, &chld_out, &chld_err, 0);
|
||||
/* apt-get update changes exit status if it can't fetch packages.
|
||||
* since we were explicitly asked to do so, this is treated as
|
||||
|
|
|
|||
Loading…
Reference in a new issue