ref: f7b11a377535a5b088331395e2d15fe9e3bd73b7
parent: 837a1ce0a96414e91e708804e341b8a559108b83
author: Turo Lamminen <[email protected]>
date: Tue Dec 11 14:45:08 EST 2018
net: Make _net_module_s ResolveAddress function parameter const and fix functions to match
--- a/src/net_defs.h
+++ b/src/net_defs.h
@@ -87,7 +87,7 @@
// Try to resolve a name to an address
- net_addr_t *(*ResolveAddress)(char *addr);
+ net_addr_t *(*ResolveAddress)(const char *addr);
};
// net_addr_t
--- a/src/net_loop.c
+++ b/src/net_loop.c
@@ -128,7 +128,7 @@
{
}
-static net_addr_t *NET_CL_ResolveAddress(char *address)
+static net_addr_t *NET_CL_ResolveAddress(const char *address)
{
if (address == NULL)
{
@@ -204,7 +204,7 @@
{
}
-static net_addr_t *NET_SV_ResolveAddress(char *address)
+static net_addr_t *NET_SV_ResolveAddress(const char *address)
{
if (address == NULL)
{
--- a/src/net_sdl.c
+++ b/src/net_sdl.c
@@ -325,7 +325,7 @@
}
}
-net_addr_t *NET_SDL_ResolveAddress(char *address)
+net_addr_t *NET_SDL_ResolveAddress(const char *address)
{
IPaddress ip;
char *addr_hostname;