summaryrefslogtreecommitdiff
path: root/src/core/capsicum.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-07-28 18:44:18 +0100
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-07-29 23:52:23 +0100
commit939371aa1dfdbf11fe98648e1eafc4c95e80bb9e (patch)
tree5e440667932621863b5f77898d8716675a4c2cdf /src/core/capsicum.c
parent1f57ceec4c4e7c3d42f341921e36fe4aab612e57 (diff)
downloadirssi-939371aa1dfdbf11fe98648e1eafc4c95e80bb9e.zip
Fix warnings.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
Diffstat (limited to 'src/core/capsicum.c')
-rw-r--r--src/core/capsicum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/capsicum.c b/src/core/capsicum.c
index f44b326d..5a59adcd 100644
--- a/src/core/capsicum.c
+++ b/src/core/capsicum.c
@@ -93,7 +93,7 @@ int capsicum_net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
int capsicum_net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
{
nvlist_t *nvl;
- IPADDR *received_ip4, *received_ip6;
+ const IPADDR *received_ip4, *received_ip6;
int error, ret, saved_errno;
/* Send request to the symbiont. */
@@ -130,7 +130,7 @@ int capsicum_net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
nvlist_t *symbiont_connect(const nvlist_t *request)
{
nvlist_t *response;
- IPADDR *ip, *my_ip;
+ const IPADDR *ip, *my_ip;
int port, saved_errno, sock;
ip = nvlist_get_binary(request, "ip", NULL);