summaryrefslogtreecommitdiff
path: root/src/sock_any.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-09-04 00:34:42 +0000
committerStef Walter <stef@memberwebs.com>2004-09-04 00:34:42 +0000
commitaae95bcac83dd2f1a5e258896ba24db1d626ccf1 (patch)
treef6edf5df7d05c7761bd784e0b3dd2fb3f07d3ab8 /src/sock_any.c
parent2c1e356c9434b4419274496907413ad5186abebd (diff)
Supress needless warnings
Diffstat (limited to 'src/sock_any.c')
-rw-r--r--src/sock_any.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sock_any.c b/src/sock_any.c
index e5f24c0..7535e02 100644
--- a/src/sock_any.c
+++ b/src/sock_any.c
@@ -302,7 +302,7 @@ int sock_any_pton(const char* addr, struct sockaddr_any* any, int opts)
return -1;
}
-int sock_any_ntop(struct sockaddr_any* any, char* addr, size_t addrlen, int opts)
+int sock_any_ntop(const struct sockaddr_any* any, char* addr, size_t addrlen, int opts)
{
int len = 0;
int port = 0;
@@ -354,7 +354,7 @@ int sock_any_ntop(struct sockaddr_any* any, char* addr, size_t addrlen, int opts
return 0;
}
-int sock_any_cmp(struct sockaddr_any* a1, struct sockaddr_any* a2, int opts)
+int sock_any_cmp(const struct sockaddr_any* a1, const struct sockaddr_any* a2, int opts)
{
if(a1->s.a.sa_family != a2->s.a.sa_family)
return -1;