summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_dig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index 8c3fe6b..d9481f2 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -74,6 +74,7 @@ main (int argc, char **argv)
74 long microsec; 74 long microsec;
75 double elapsed_time; 75 double elapsed_time;
76 int result = STATE_UNKNOWN; 76 int result = STATE_UNKNOWN;
77 int timeout_interval_dig;
77 78
78 setlocale (LC_ALL, ""); 79 setlocale (LC_ALL, "");
79 bindtextdomain (PACKAGE, LOCALEDIR); 80 bindtextdomain (PACKAGE, LOCALEDIR);
@@ -90,7 +91,7 @@ main (int argc, char **argv)
90 usage_va(_("Could not parse arguments")); 91 usage_va(_("Could not parse arguments"));
91 92
92 /* dig applies the timeout to each try, so we need to work around this */ 93 /* dig applies the timeout to each try, so we need to work around this */
93 int timeout_interval_dig = timeout_interval / number_tries + number_tries; 94 timeout_interval_dig = timeout_interval / number_tries + number_tries;
94 95
95 /* get the command to run */ 96 /* get the command to run */
96 xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d", 97 xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d",