From: Arran Cudbard-Bell Date: Wed, 28 Jun 2017 18:07:08 +0000 (-0400) Subject: fr_ipaddr_is_inaddr_any should be const X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3ea56462ae42bf6cb43e1fb7fd477a96c5afc3;p=thirdparty%2Ffreeradius-server.git fr_ipaddr_is_inaddr_any should be const --- diff --git a/src/include/inet.h b/src/include/inet.h index f54e7752efc..fee40e69e1c 100644 --- a/src/include/inet.h +++ b/src/include/inet.h @@ -89,7 +89,7 @@ extern struct in6_addr fr_inet_link_local6; /* * Utility functions */ -int fr_ipaddr_is_inaddr_any(fr_ipaddr_t *ipaddr); +int fr_ipaddr_is_inaddr_any(fr_ipaddr_t const *ipaddr); /* * IP address masking diff --git a/src/lib/util/inet.c b/src/lib/util/inet.c index 4cc701fb10e..4aaed1df831 100644 --- a/src/lib/util/inet.c +++ b/src/lib/util/inet.c @@ -36,7 +36,7 @@ bool fr_hostname_lookups = true; //!< hostname -> IP lookups? * - 1 if it is. * - -1 on error. */ -int fr_ipaddr_is_inaddr_any(fr_ipaddr_t *ipaddr) +int fr_ipaddr_is_inaddr_any(fr_ipaddr_t const *ipaddr) { if (ipaddr->af == AF_INET) {