aboutsummaryrefslogtreecommitdiff
path: root/tftp.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-05 03:14:39 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-05 03:14:39 +0000
commit01d0083a639d6b91298c62b9e67b803fe9b9a36d (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /tftp.c
parentea8519ec8a9e6807e16ca3a138d22201d35b273b (diff)
downloadbusybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.gz
busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.bz2
busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.zip
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'tftp.c')
-rw-r--r--tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tftp.c b/tftp.c
index 309df36b3..466851c1b 100644
--- a/tftp.c
+++ b/tftp.c
@@ -116,7 +116,7 @@ static inline int tftp(int cmd, struct hostent *host,
116 len = sizeof(sa); 116 len = sizeof(sa);
117 117
118 memset(&sa, 0, len); 118 memset(&sa, 0, len);
119 bind(socketfd, &sa, len); 119 bind(socketfd, (struct sockaddr *)&sa, len);
120 120
121 sa.sin_family = host->h_addrtype; 121 sa.sin_family = host->h_addrtype;
122 sa.sin_port = htons(port); 122 sa.sin_port = htons(port);