diff options
author | Denys Vlasenko | 2011-04-07 17:52:20 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-04-07 17:52:20 +0200 |
commit | ca18311d0ae16a96e988df15a9009095f93df85e (patch) | |
tree | 2122c871968c5239049c18b785c2ff27c6593f4f /networking/pscan.c | |
parent | 8e23fafadee75bbe275bb795d0b2c2121dad93e7 (diff) | |
download | busybox-ca18311d0ae16a96e988df15a9009095f93df85e.zip busybox-ca18311d0ae16a96e988df15a9009095f93df85e.tar.gz |
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/pscan.c')
-rw-r--r-- | networking/pscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/pscan.c b/networking/pscan.c index a8194d1..a9e5d5c 100644 --- a/networking/pscan.c +++ b/networking/pscan.c @@ -76,7 +76,7 @@ int pscan_main(int argc UNUSED_PARAM, char **argv) DMSG("rtt %u", rtt_4); /* The SOCK_STREAM socket type is implemented on the TCP/IP protocol. */ - set_nport(lsap, htons(port)); + set_nport(&lsap->u.sa, htons(port)); s = xsocket(lsap->u.sa.sa_family, SOCK_STREAM, 0); /* We need unblocking socket so we don't need to wait for ETIMEOUT. */ /* Nonblocking connect typically "fails" with errno == EINPROGRESS */ |