These functions only extract the port from an address. There is no reason to
not use a const address.
}
/* returns port in network byte order */
-static inline int get_net_port(struct sockaddr_storage *addr)
+static inline int get_net_port(const struct sockaddr_storage *addr)
{
switch (addr->ss_family) {
case AF_INET:
}
/* returns port in host byte order */
-static inline int get_host_port(struct sockaddr_storage *addr)
+static inline int get_host_port(const struct sockaddr_storage *addr)
{
switch (addr->ss_family) {
case AF_INET: