diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ssh.c | 2 | ||||
-rw-r--r-- | plugins/check_swap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index 2ad7af66..9d0d7cde 100644 --- a/plugins/check_ssh.c +++ b/plugins/check_ssh.c | |||
@@ -77,7 +77,7 @@ int main(int argc, char **argv) { | |||
77 | 77 | ||
78 | mp_check overall = mp_check_init(); | 78 | mp_check overall = mp_check_init(); |
79 | if (config.output_format_is_set) { | 79 | if (config.output_format_is_set) { |
80 | overall.format = config.output_format; | 80 | mp_set_format(config.output_format); |
81 | } | 81 | } |
82 | 82 | ||
83 | /* initialize alarm signal handling */ | 83 | /* initialize alarm signal handling */ |
diff --git a/plugins/check_swap.c b/plugins/check_swap.c index 4d3b6099..cb95949a 100644 --- a/plugins/check_swap.c +++ b/plugins/check_swap.c | |||
@@ -93,7 +93,7 @@ int main(int argc, char **argv) { | |||
93 | double percent_used; | 93 | double percent_used; |
94 | mp_check overall = mp_check_init(); | 94 | mp_check overall = mp_check_init(); |
95 | if (config.output_format_is_set) { | 95 | if (config.output_format_is_set) { |
96 | overall.format = config.output_format; | 96 | mp_set_format(config.output_format); |
97 | } | 97 | } |
98 | mp_subcheck sc1 = mp_subcheck_init(); | 98 | mp_subcheck sc1 = mp_subcheck_init(); |
99 | sc1 = mp_set_subcheck_default_state(sc1, STATE_OK); | 99 | sc1 = mp_set_subcheck_default_state(sc1, STATE_OK); |