ref: 264ff372986563deb5bf9b7ddcb40424863af7e0
parent: f7b11a377535a5b088331395e2d15fe9e3bd73b7
author: Turo Lamminen <[email protected]>
date: Tue Dec 11 14:46:39 EST 2018
net: Make NET_ResolveAddress addr parameter const
--- a/src/net_io.c
+++ b/src/net_io.c
@@ -54,7 +54,7 @@
++context->num_modules;
}
-net_addr_t *NET_ResolveAddress(net_context_t *context, char *addr)
+net_addr_t *NET_ResolveAddress(net_context_t *context, const char *addr)
{
int i;
net_addr_t *result;
--- a/src/net_io.h
+++ b/src/net_io.h
@@ -30,7 +30,7 @@
net_packet_t **packet);
char *NET_AddrToString(net_addr_t *addr);
void NET_FreeAddress(net_addr_t *addr);
-net_addr_t *NET_ResolveAddress(net_context_t *context, char *address);
+net_addr_t *NET_ResolveAddress(net_context_t *context, const char *address);
#endif /* #ifndef NET_IO_H */