diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-01-30 19:51:46 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-01-30 19:51:46 +0100 |
commit | 4a2a7254653476c8baae583101bc50451de9431b (patch) | |
tree | 9c1eb7c2145bf36caa35ffcd56e65b39402bab82 /plugins/check_dig.c | |
parent | e33ecc84c7ebdf4af3e8649a326e8a5acc9fe5b6 (diff) | |
download | monitoring-plugins-4a2a7254653476c8baae583101bc50451de9431b.tar.gz |
check_dig: Declare variable at the top
C89 doesn't allow variable declarations to be intermingled with code.
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r-- | plugins/check_dig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 8c3fe6b8..d9481f2d 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -74,6 +74,7 @@ main (int argc, char **argv) long microsec; double elapsed_time; int result = STATE_UNKNOWN; + int timeout_interval_dig; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -90,7 +91,7 @@ main (int argc, char **argv) usage_va(_("Could not parse arguments")); /* dig applies the timeout to each try, so we need to work around this */ - int timeout_interval_dig = timeout_interval / number_tries + number_tries; + timeout_interval_dig = timeout_interval / number_tries + number_tries; /* get the command to run */ xasprintf (&command_line, "%s @%s -p %d %s -t %s %s %s +tries=%d +time=%d", |