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
This commit is contained in:
parent
3c0364f391
commit
e76c3b08e1
33 changed files with 168 additions and 204 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue