aboutsummaryrefslogtreecommitdiff
path: root/toys/net
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-01-16 08:58:04 -0600
committerRob Landley <rob@landley.net>2019-01-16 08:58:04 -0600
commit22927b0b9a75f2d8ccee0210645d690128b87e3e (patch)
tree5024133e2dd6594758bd9dc896562b8c2d920236 /toys/net
parent5c97bb7b4b6bda375e1cc1d5bd09ebf17e003913 (diff)
downloadtoybox-22927b0b9a75f2d8ccee0210645d690128b87e3e.tar.gz
Move xsendto() to lib/net.c.
Diffstat (limited to 'toys/net')
-rw-r--r--toys/net/ping.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/toys/net/ping.c b/toys/net/ping.c
index 1829af71..bc3381d8 100644
--- a/toys/net/ping.c
+++ b/toys/net/ping.c
@@ -55,15 +55,6 @@ GLOBALS(
unsigned long sent, recv, fugit, min, max;
)
-static void xsendto(int sockfd, void *buf, size_t len, struct sockaddr *dest)
-{
- int rc = sendto(TT.sock, buf, len, 0, dest,
- dest->sa_family == AF_INET ? sizeof(struct sockaddr_in) :
- sizeof(struct sockaddr_in6));
-
- if (rc != len) perror_exit("sendto");
-}
-
static void summary(int sig)
{
if (!(toys.optflags&FLAG_q) && TT.sent && TT.sa) {