summaryrefslogtreecommitdiffstats
path: root/plugins/check_dns.c
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2014-12-08 23:21:54 +0100
committerJan Wagner <waja@cyconet.org>2014-12-15 17:44:13 +0100
commit193ea6b5d7388389eb2735260308380a22c50c68 (patch)
treeeef0dac657ea4ec4a9c7444d510763b835fc2afa /plugins/check_dns.c
parent8235fd0aef2945e0d638fba3493134588d085d5a (diff)
downloadmonitoring-plugins-193ea6b5d7388389eb2735260308380a22c50c68.tar.gz
check_dns: remove dead code
Remove code dead since commit 4efa917. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'plugins/check_dns.c')
-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 22121226..0316e407 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -81,7 +81,6 @@ main (int argc, char **argv)
81 double elapsed_time; 81 double elapsed_time;
82 long microsec; 82 long microsec;
83 struct timeval tv; 83 struct timeval tv;
84 int multi_address;
85 int parse_address = FALSE; /* This flag scans for Address: but only after Name: */ 84 int parse_address = FALSE; /* This flag scans for Address: but only after Name: */
86 output chld_out, chld_err; 85 output chld_out, chld_err;
87 size_t i; 86 size_t i;
@@ -249,11 +248,6 @@ main (int argc, char **argv)
249 elapsed_time = (double)microsec / 1.0e6; 248 elapsed_time = (double)microsec / 1.0e6;
250 249
251 if (result == STATE_OK) { 250 if (result == STATE_OK) {
252 if (strchr (address, ',') == NULL)
253 multi_address = FALSE;
254 else
255 multi_address = TRUE;
256
257 result = get_status(elapsed_time, time_thresholds); 251 result = get_status(elapsed_time, time_thresholds);
258 if (result == STATE_OK) { 252 if (result == STATE_OK) {
259 printf ("DNS %s: ", _("OK")); 253 printf ("DNS %s: ", _("OK"));