diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 16:00:35 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-15 16:00:35 +0200 |
commit | 15ecdb73ce5cda54f824e5a63ee8e801bf16a996 (patch) | |
tree | ed011d8f2bfcde8750bca64c0f69407df4bd6444 | |
parent | 811da10fda11b1d0453453040647270700862d8f (diff) | |
download | monitoring-plugins-15ecdb73.tar.gz |
Fix types in check_apt
-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 e840184b..ab66a8d2 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
@@ -310,8 +310,8 @@ run_upgrade_result run_upgrade(const upgrade_type upgrade, const char *do_includ | |||
310 | die(STATE_UNKNOWN, _("%s: Error compiling regexp: %s"), progname, rerrbuf); | 310 | die(STATE_UNKNOWN, _("%s: Error compiling regexp: %s"), progname, rerrbuf); |
311 | } | 311 | } |
312 | 312 | ||
313 | struct output chld_out; | 313 | output chld_out; |
314 | struct output chld_err; | 314 | output chld_err; |
315 | char *cmdline = NULL; | 315 | char *cmdline = NULL; |
316 | cmdline = construct_cmdline(upgrade, upgrade_opts); | 316 | cmdline = construct_cmdline(upgrade, upgrade_opts); |
317 | if (input_filename != NULL) { | 317 | if (input_filename != NULL) { |
@@ -410,8 +410,8 @@ int run_update(char *update_opts) { | |||
410 | /* run the update */ | 410 | /* run the update */ |
411 | cmdline = construct_cmdline(NO_UPGRADE, update_opts); | 411 | cmdline = construct_cmdline(NO_UPGRADE, update_opts); |
412 | 412 | ||
413 | struct output chld_out; | 413 | output chld_out; |
414 | struct output chld_err; | 414 | output chld_err; |
415 | result = np_runcmd(cmdline, &chld_out, &chld_err, 0); | 415 | result = np_runcmd(cmdline, &chld_out, &chld_err, 0); |
416 | /* apt-get update changes exit status if it can't fetch packages. | 416 | /* apt-get update changes exit status if it can't fetch packages. |
417 | * since we were explicitly asked to do so, this is treated as | 417 | * since we were explicitly asked to do so, this is treated as |