summaryrefslogtreecommitdiff
path: root/tftp.c
diff options
context:
space:
mode:
authorEric Andersen2001-04-05 03:14:39 +0000
committerEric Andersen2001-04-05 03:14:39 +0000
commite76c3b08e105147e3cef7e8d38d65da2fac6b2e1 (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /tftp.c
parent3c0364f3911ec9f43e1c8c96ec2c8e30b1b52c47 (diff)
downloadbusybox-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.zip
busybox-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.gz
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
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 309df36..466851c 100644
--- a/tftp.c
+++ b/tftp.c
@@ -116,7 +116,7 @@ static inline int tftp(int cmd, struct hostent *host,
len = sizeof(sa);
memset(&sa, 0, len);
- bind(socketfd, &sa, len);
+ bind(socketfd, (struct sockaddr *)&sa, len);
sa.sin_family = host->h_addrtype;
sa.sin_port = htons(port);