forked from mirrors/tftp-hpa-google
recvfrom: fix the type of the fallthrough case
If we can't figure out the source address, we have the "fall on our face" version of myrecvfrom(); make sure its prototype matches. This handles building on machines where sockaddr_t != int and yet there is no way to get the source address. This apparently affects at least one version of Solaris. Reported-by: Georg Schwarz <georg.schwarz@freenet.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
e7a7b19483
commit
a63534e6e6
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,8 @@ myrecvfrom(int s, void *buf, int len, unsigned int flags,
|
||||||
|
|
||||||
int
|
int
|
||||||
myrecvfrom(int s, void *buf, int len, unsigned int flags,
|
myrecvfrom(int s, void *buf, int len, unsigned int flags,
|
||||||
struct sockaddr *from, int *fromlen, union sock_addr *myaddr)
|
struct sockaddr *from, socklen_t * fromlen,
|
||||||
|
union sock_addr *myaddr)
|
||||||
{
|
{
|
||||||
/* There is no way we can get the local address, fudge it */
|
/* There is no way we can get the local address, fudge it */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue