summaryrefslogtreecommitdiffstats
path: root/plugins/check_fping.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-13 11:50:54 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-11-13 11:50:54 (GMT)
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 9a2dd55..da11e67 100644
--- a/plugins/check_fping.c
+++ b/plugins/check_fping.c
@@ -71,9 +71,8 @@ main (int argc, char **argv)
71 server = strscpy (server, server_name); 71 server = strscpy (server, server_name);
72 72
73 /* compose the command */ 73 /* compose the command */
74 command_line = ssprintf 74 asprintf (&command_line, "%s -b %d -c %d %s", PATH_TO_FPING,
75 (command_line, "%s -b %d -c %d %s", 75 packet_size, packet_count, server);
76 PATH_TO_FPING, packet_size, packet_count, server);
77 76
78 if (verbose) 77 if (verbose)
79 printf ("%s\n", command_line); 78 printf ("%s\n", command_line);