mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-22 21:04:14 +00:00
engine: modify NetAPI to follow const qualifiers
This commit is contained in:
parent
588dede2a2
commit
88ce5fd0b6
@ -87,7 +87,7 @@ typedef struct net_api_s
|
|||||||
void (*SendRequest)( int context, int request, int flags, double timeout, struct netadr_s *remote_address, net_api_response_func_t response );
|
void (*SendRequest)( int context, int request, int flags, double timeout, struct netadr_s *remote_address, net_api_response_func_t response );
|
||||||
void (*CancelRequest)( int context );
|
void (*CancelRequest)( int context );
|
||||||
void (*CancelAllRequests)( void );
|
void (*CancelAllRequests)( void );
|
||||||
char *(*AdrToString)( struct netadr_s *a );
|
const char *(*AdrToString)( struct netadr_s *a );
|
||||||
int ( *CompareAdr)( struct netadr_s *a, struct netadr_s *b );
|
int ( *CompareAdr)( struct netadr_s *a, struct netadr_s *b );
|
||||||
int ( *StringToAdr)( char *s, struct netadr_s *a );
|
int ( *StringToAdr)( char *s, struct netadr_s *a );
|
||||||
const char *(*ValueForKey)( const char *s, const char *key );
|
const char *(*ValueForKey)( const char *s, const char *key );
|
||||||
|
@ -3492,7 +3492,7 @@ NetAPI_AdrToString
|
|||||||
|
|
||||||
=================
|
=================
|
||||||
*/
|
*/
|
||||||
char *NetAPI_AdrToString( netadr_t *a )
|
const char *NetAPI_AdrToString( netadr_t *a )
|
||||||
{
|
{
|
||||||
return NET_AdrToString( *a );
|
return NET_AdrToString( *a );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user