summaryrefslogtreecommitdiff
path: root/libbb/udp_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/udp_io.c')
-rw-r--r--libbb/udp_io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/udp_io.c b/libbb/udp_io.c
index 2f02a13..e968ecb 100644
--- a/libbb/udp_io.c
+++ b/libbb/udp_io.c
@@ -25,10 +25,10 @@ socket_want_pktinfo(int fd)
}
-#ifdef UNUSED
ssize_t
send_to_from(int fd, void *buf, size_t len, int flags,
- const struct sockaddr *from, const struct sockaddr *to,
+ const struct sockaddr *to,
+ const struct sockaddr *from,
socklen_t tolen)
{
#ifndef IP_PKTINFO
@@ -92,7 +92,6 @@ send_to_from(int fd, void *buf, size_t len, int flags,
return sendmsg(fd, &msg, flags);
#endif
}
-#endif /* UNUSED */
/* NB: this will never set port# in 'to'!
* _Only_ IP/IPv6 address part of 'to' is _maybe_ modified.