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/inetd.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/inetd.c')
-rw-r--r-- | networking/inetd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index fb00c6cd7..6018665ef 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -501,7 +501,7 @@ static void prepare_socket_fd(servtab_t *sep) | |||
501 | 501 | ||
502 | /* zero out the port for all RPC services; let bind() | 502 | /* zero out the port for all RPC services; let bind() |
503 | * find one. */ | 503 | * find one. */ |
504 | set_nport(sep->se_lsa, 0); | 504 | set_nport(&sep->se_lsa->u.sa, 0); |
505 | 505 | ||
506 | /* for RPC services, attempt to use a reserved port | 506 | /* for RPC services, attempt to use a reserved port |
507 | * if they are going to be running as root. */ | 507 | * if they are going to be running as root. */ |
@@ -959,7 +959,7 @@ static void reread_config_file(int sig UNUSED_PARAM) | |||
959 | } | 959 | } |
960 | if (LONE_CHAR(sep->se_local_hostname, '*')) { | 960 | if (LONE_CHAR(sep->se_local_hostname, '*')) { |
961 | lsa = xzalloc_lsa(sep->se_family); | 961 | lsa = xzalloc_lsa(sep->se_family); |
962 | set_nport(lsa, port); | 962 | set_nport(&lsa->u.sa, port); |
963 | } else { | 963 | } else { |
964 | lsa = host_and_af2sockaddr(sep->se_local_hostname, | 964 | lsa = host_and_af2sockaddr(sep->se_local_hostname, |
965 | ntohs(port), sep->se_family); | 965 | ntohs(port), sep->se_family); |