net: Make NET_ResolveAddress addr parameter const
This commit is contained in:
parent
f7b11a3775
commit
264ff37298
2 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ void NET_AddModule(net_context_t *context, net_module_t *module)
|
|||
++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;
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ boolean NET_RecvPacket(net_context_t *context, net_addr_t **addr,
|
|||
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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue