aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_fping.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_fping.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_fping.c')
-rw-r--r--plugins/check_fping.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_fping.c b/plugins/check_fping.c
index 9a2dd557..da11e678 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -71,9 +71,8 @@ main (int argc, char **argv)
server = strscpy (server, server_name);
/* compose the command */
- command_line = ssprintf
- (command_line, "%s -b %d -c %d %s",
- PATH_TO_FPING, packet_size, packet_count, server);
+ asprintf (&command_line, "%s -b %d -c %d %s", PATH_TO_FPING,
+ packet_size, packet_count, server);
if (verbose)
printf ("%s\n", command_line);