Browse Source

engine: modify NetAPI to follow const qualifiers

pull/2/head
Alibek Omarov 3 years ago
parent
commit
88ce5fd0b6
  1. 2
      common/net_api.h
  2. 2
      engine/client/cl_game.c

2
common/net_api.h

@ -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 );

2
engine/client/cl_game.c

@ -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…
Cancel
Save