diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-12 11:28:58 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-11-12 11:28:58 (GMT) |
commit | 9728dcad931d1c442a6d8e3e6765e2d9870600d1 (patch) | |
tree | 388232d28abbad2dd9c3351e73dc46c2a2befbd6 /plugins/check_dig.c | |
parent | 41367d9625c1d8a854bdeef4c09511ad4d93b192 (diff) | |
download | monitoring-plugins-9728dcad931d1c442a6d8e3e6765e2d9870600d1.tar.gz |
cleanup asprintf, old function decls
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@189 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r-- | plugins/check_dig.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index fcd5d0d..ba41ebd 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -33,9 +33,7 @@ | |||
33 | #define SUMMARY "Test the DNS service on the specified host using dig\n" | 33 | #define SUMMARY "Test the DNS service on the specified host using dig\n" |
34 | 34 | ||
35 | int process_arguments (int, char **); | 35 | int process_arguments (int, char **); |
36 | int call_getopt (int, char **); | ||
37 | int validate_arguments (void); | 36 | int validate_arguments (void); |
38 | int check_disk (int usp, int free_disk); | ||
39 | void print_help (void); | 37 | void print_help (void); |
40 | void print_usage (void); | 38 | void print_usage (void); |
41 | 39 | ||
@@ -59,9 +57,7 @@ main (int argc, char **argv) | |||
59 | usage ("Could not parse arguments\n"); | 57 | usage ("Could not parse arguments\n"); |
60 | 58 | ||
61 | /* get the command to run */ | 59 | /* get the command to run */ |
62 | command_line = | 60 | asprintf (&command_line, "%s @%s %s", PATH_TO_DIG, dns_server, query_address); |
63 | ssprintf (command_line, "%s @%s %s", PATH_TO_DIG, dns_server, | ||
64 | query_address); | ||
65 | 61 | ||
66 | alarm (timeout_interval); | 62 | alarm (timeout_interval); |
67 | time (&start_time); | 63 | time (&start_time); |