From b290889f0265e1278e8a868aa82a65bcc9099b0f Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 12 Apr 2007 11:34:39 +0000 Subject: - add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit. -916 byte --- networking/tftp.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'networking/tftp.c') 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( fprintf(stderr, "%02x ", (unsigned char) *cp); fprintf(stderr, "\n"); #endif - if (sendto(socketfd, xbuf, len, 0, - &peer_lsa->sa, peer_lsa->len) < 0) { - bb_perror_msg("send"); - len = -1; - break; - } + xsendto(socketfd, xbuf, len, &peer_lsa->sa, peer_lsa->len); if (finished && (opcode == TFTP_ACK)) { break; -- cgit v1.2.3-55-g6feb