diff options
author | Rob Landley | 2006-08-03 15:41:12 +0000 |
---|---|---|
committer | Rob Landley | 2006-08-03 15:41:12 +0000 |
commit | d921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch) | |
tree | e4a2769349867c441cf2983d83097bb66701a733 /networking/tftp.c | |
parent | 6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff) | |
download | busybox-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip busybox-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz |
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
Diffstat (limited to 'networking/tftp.c')
-rw-r--r-- | networking/tftp.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/networking/tftp.c b/networking/tftp.c index dfa599a..42fd9d2 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -19,18 +19,6 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. * ------------------------------------------------------------------------- */ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <sys/stat.h> -#include <netdb.h> -#include <netinet/in.h> -#include <arpa/inet.h> -#include <unistd.h> -#include <fcntl.h> - #include "busybox.h" @@ -159,7 +147,7 @@ static int tftp(const int cmd, const struct hostent *host, char *buf=xmalloc(tftp_bufsize += 4); if ((socketfd = socket(PF_INET, SOCK_DGRAM, 0)) < 0) { - /* need to unlink the localfile, so don't use bb_xsocket here. */ + /* need to unlink the localfile, so don't use xsocket here. */ bb_perror_msg("socket"); return EXIT_FAILURE; } @@ -167,7 +155,7 @@ static int tftp(const int cmd, const struct hostent *host, len = sizeof(sa); memset(&sa, 0, len); - bb_xbind(socketfd, (struct sockaddr *)&sa, len); + xbind(socketfd, (struct sockaddr *)&sa, len); sa.sin_family = host->h_addrtype; sa.sin_port = port; |