summaryrefslogtreecommitdiff
path: root/scheduler/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'scheduler/network.c')
-rw-r--r--scheduler/network.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/scheduler/network.c b/scheduler/network.c
index 7f30b1e25..9048ad599 100644
--- a/scheduler/network.c
+++ b/scheduler/network.c
@@ -264,12 +264,7 @@ cupsdNetIFUpdate(void)
if (match)
{
- if (lis->address.addr.sa_family == AF_INET)
- temp->port = ntohs(lis->address.ipv4.sin_port);
-#ifdef AF_INET6
- else if (lis->address.addr.sa_family == AF_INET6)
- temp->port = ntohs(lis->address.ipv6.sin6_port);
-#endif /* AF_INET6 */
+ temp->port = _httpAddrPort(&(lis->address));
break;
}
}