shithub: choc

Download patch

ref: 5ae632e4854703e37a558fe93f2733c711b8fc98
parent: 84fa6864cbee697f2529a4b86663259df1e8fb2a
author: Turo Lamminen <turol@iki.fi>
date: Fri May 1 21:14:13 EDT 2020

net: Make NET_QueryAddress parameter const

--- a/src/net_query.c
+++ b/src/net_query.c
@@ -808,7 +808,7 @@
     }
 }
 
-void NET_QueryAddress(char *addr_str)
+void NET_QueryAddress(const char *addr_str)
 {
     net_addr_t *addr;
     query_target_t *target;
--- a/src/net_query.h
+++ b/src/net_query.h
@@ -30,7 +30,7 @@
 
 extern void NET_LANQuery(void);
 extern void NET_MasterQuery(void);
-extern void NET_QueryAddress(char *addr);
+extern void NET_QueryAddress(const char *addr);
 extern net_addr_t *NET_FindLANServer(void);
 
 extern int NET_Query_Poll(net_query_callback_t callback, void *user_data);