diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2023-11-22 23:34:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 23:34:59 +0100 |
commit | 53a15f0c2c59a06f2d4f8f07c6b579b7d5272de3 (patch) | |
tree | 5e2e7e5f0103298390cecd1f867fd4da7caa7d47 /plugins/check_ntp_peer.c | |
parent | f1e91405c3b51641b02228672c47e2b4aa1dd5f1 (diff) | |
parent | 7ba8463506b3d246c246a0caa0d78f0d16b321c6 (diff) | |
download | monitoring-plugins-53a15f0.tar.gz |
Merge pull request #1951 from RincewindsHat/compiler_warnings_maybe_unused
Fix compiler warning for uninitialized variable
Diffstat (limited to 'plugins/check_ntp_peer.c')
-rw-r--r-- | plugins/check_ntp_peer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index d4e5fd9a..4fb9018c 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
@@ -557,7 +557,8 @@ char *perfd_truechimers (int num_truechimers) | |||
557 | } | 557 | } |
558 | 558 | ||
559 | int main(int argc, char *argv[]){ | 559 | int main(int argc, char *argv[]){ |
560 | int result, offset_result, stratum, num_truechimers, oresult, jresult, sresult, tresult; | 560 | int result, offset_result, stratum, num_truechimers; |
561 | int oresult, jresult, sresult, tresult = STATE_UNKNOWN; | ||
561 | double offset=0, jitter=0; | 562 | double offset=0, jitter=0; |
562 | char *result_line, *perfdata_line; | 563 | char *result_line, *perfdata_line; |
563 | 564 | ||