[monitoring-plugins] check_dns: remove dead code

Jan Wagner <[email protected]>
Newsgroups gmane.network.nagios.cvs
Message-ID <[email protected]>
    Module: monitoring-plugins
    Branch: master
    Commit: 193ea6b5d7388389eb2735260308380a22c50c68
    Author: Sebastian Herbszt <[email protected]>
 Committer: Jan Wagner <[email protected]>
      Date: Mon Dec  8 23:21:54 2014 +0100
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=193ea6b

check_dns: remove dead code

Remove code dead since commit 4efa917.

Signed-off-by: Sebastian Herbszt <[email protected]>

---

 plugins/check_dns.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/plugins/check_dns.c b/plugins/check_dns.c
index 2212122..0316e40 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"));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.