aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.org> 2016-11-07 23:05:26 +0100
committerGravatar GitHub <noreply@github.com> 2016-11-07 23:05:26 +0100
commit28d4812860900e3eb21c3e64ec4250fead367c1a (patch)
tree847921057a93a7168fab3faf19f9d1478b8842dc /plugins
parentd3cedfe305f428ac614b2ca44f509ac3392d8006 (diff)
parent193ea6b5d7388389eb2735260308380a22c50c68 (diff)
downloadmonitoring-plugins-28d4812860900e3eb21c3e64ec4250fead367c1a.tar.gz
Merge pull request #1307 from waja/check_dns_dead_code
check_dns: remove dead code
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_dns.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 48601f02..54ce7d16 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -81,7 +81,6 @@ main (int argc, char **argv)
double elapsed_time;
long microsec;
struct timeval tv;
- int multi_address;
int parse_address = FALSE; /* This flag scans for Address: but only after Name: */
output chld_out, chld_err;
size_t i;
@@ -249,11 +248,6 @@ main (int argc, char **argv)
elapsed_time = (double)microsec / 1.0e6;
if (result == STATE_OK) {
- if (strchr (address, ',') == NULL)
- multi_address = FALSE;
- else
- multi_address = TRUE;
-
result = get_status(elapsed_time, time_thresholds);
if (result == STATE_OK) {
printf ("DNS %s: ", _("OK"));