diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-12 11:34:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-12 11:34:39 +0000 |
commit | b290889f0265e1278e8a868aa82a65bcc9099b0f (patch) | |
tree | 2fc8dcc3b7f525f61817417e32c2827b57e17b8a /networking/tftp.c | |
parent | 51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (diff) | |
download | busybox-w32-b290889f0265e1278e8a868aa82a65bcc9099b0f.tar.gz busybox-w32-b290889f0265e1278e8a868aa82a65bcc9099b0f.tar.bz2 busybox-w32-b290889f0265e1278e8a868aa82a65bcc9099b0f.zip |
- add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit.
-916 byte
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index ea415e5fe..0621dde69 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -257,12 +257,7 @@ static int tftp( | |||
257 | fprintf(stderr, "%02x ", (unsigned char) *cp); | 257 | fprintf(stderr, "%02x ", (unsigned char) *cp); |
258 | fprintf(stderr, "\n"); | 258 | fprintf(stderr, "\n"); |
259 | #endif | 259 | #endif |
260 | if (sendto(socketfd, xbuf, len, 0, | 260 | xsendto(socketfd, xbuf, len, &peer_lsa->sa, peer_lsa->len); |
261 | &peer_lsa->sa, peer_lsa->len) < 0) { | ||
262 | bb_perror_msg("send"); | ||
263 | len = -1; | ||
264 | break; | ||
265 | } | ||
266 | 261 | ||
267 | if (finished && (opcode == TFTP_ACK)) { | 262 | if (finished && (opcode == TFTP_ACK)) { |
268 | break; | 263 | break; |