aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-12 11:28:58 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-12 11:28:58 +0000
commit9728dcad931d1c442a6d8e3e6765e2d9870600d1 (patch)
tree388232d28abbad2dd9c3351e73dc46c2a2befbd6 /plugins
parent41367d9625c1d8a854bdeef4c09511ad4d93b192 (diff)
downloadmonitoring-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')
-rw-r--r--plugins/check_dig.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c
index fcd5d0dd..ba41ebda 100644
--- a/plugins/check_dig.c
+++ b/plugins/check_dig.c
@@ -33,9 +33,7 @@
#define SUMMARY "Test the DNS service on the specified host using dig\n"
int process_arguments (int, char **);
-int call_getopt (int, char **);
int validate_arguments (void);
-int check_disk (int usp, int free_disk);
void print_help (void);
void print_usage (void);
@@ -59,9 +57,7 @@ main (int argc, char **argv)
usage ("Could not parse arguments\n");
/* get the command to run */
- command_line =
- ssprintf (command_line, "%s @%s %s", PATH_TO_DIG, dns_server,
- query_address);
+ asprintf (&command_line, "%s @%s %s", PATH_TO_DIG, dns_server, query_address);
alarm (timeout_interval);
time (&start_time);