diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-07 17:52:20 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-07 17:52:20 +0200 |
commit | ca18311d0ae16a96e988df15a9009095f93df85e (patch) | |
tree | 2122c871968c5239049c18b785c2ff27c6593f4f /networking/tcpudp.c | |
parent | 8e23fafadee75bbe275bb795d0b2c2121dad93e7 (diff) | |
download | busybox-w32-ca18311d0ae16a96e988df15a9009095f93df85e.tar.gz busybox-w32-ca18311d0ae16a96e988df15a9009095f93df85e.tar.bz2 busybox-w32-ca18311d0ae16a96e988df15a9009095f93df85e.zip |
libbb: make set_nport accept pointer to sockaddr, not to len_and_sockaddr.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tcpudp.c')
-rw-r--r-- | networking/tcpudp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c index b532e43cd..3ff2acbf8 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -387,7 +387,7 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
387 | * already bound in parent! This seems to work in Linux. | 387 | * already bound in parent! This seems to work in Linux. |
388 | * (otherwise we can move socket to fd #0 only if bind succeeds) */ | 388 | * (otherwise we can move socket to fd #0 only if bind succeeds) */ |
389 | close(0); | 389 | close(0); |
390 | set_nport(localp, htons(local_port)); | 390 | set_nport(&localp->u.sa, htons(local_port)); |
391 | xmove_fd(xsocket(localp->u.sa.sa_family, SOCK_DGRAM, 0), 0); | 391 | xmove_fd(xsocket(localp->u.sa.sa_family, SOCK_DGRAM, 0), 0); |
392 | setsockopt_reuseaddr(0); /* crucial */ | 392 | setsockopt_reuseaddr(0); /* crucial */ |
393 | xbind(0, &localp->u.sa, localp->len); | 393 | xbind(0, &localp->u.sa, localp->len); |