aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-13 11:50:54 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-11-13 11:50:54 +0000
commit9e009c4b1128352c6039d25b39213fd480e9b055 (patch)
treee1495ef4ada6f8e092e20bc474195719f1b2b4aa /plugins/check_ping.c
parent9728dcad931d1c442a6d8e3e6765e2d9870600d1 (diff)
downloadmonitoring-plugins-9e009c4b1128352c6039d25b39213fd480e9b055.tar.gz
remove call_getopt and asprintf
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@190 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index df1d9eb2..3602122c 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -88,11 +88,9 @@ main (int argc, char **argv)
/* does the host address of number of packets argument come first? */
#ifdef PING_PACKETS_FIRST
- command_line =
- ssprintf (command_line, PING_COMMAND, max_packets, server_address);
+ asprintf (&command_line, PING_COMMAND, max_packets, server_address);
#else
- command_line =
- ssprintf (command_line, PING_COMMAND, server_address, max_packets);
+ asprintf (&command_line, PING_COMMAND, server_address, max_packets);
#endif
/* Set signal handling and alarm */