constify NET_QSocketGetTime() and NET_QSocketGetAddressString()

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1198 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2015-04-01 09:30:10 +00:00
parent 6854552809
commit 86a9748ddb
2 changed files with 4 additions and 4 deletions

View file

@ -55,8 +55,8 @@ struct qsocket_s *NET_CheckNewConnections (void);
struct qsocket_s *NET_Connect (const char *host); struct qsocket_s *NET_Connect (const char *host);
// called by client to connect to a host. Returns -1 if not able to // called by client to connect to a host. Returns -1 if not able to
double NET_QSocketGetTime (struct qsocket_s *sock); double NET_QSocketGetTime (const struct qsocket_s *sock);
const char *NET_QSocketGetAddressString (struct qsocket_s *sock); const char *NET_QSocketGetAddressString (const struct qsocket_s *sock);
qboolean NET_CanSendMessage (struct qsocket_s *sock); qboolean NET_CanSendMessage (struct qsocket_s *sock);
// Returns true or false if the given qsocket can currently accept a // Returns true or false if the given qsocket can currently accept a

View file

@ -154,13 +154,13 @@ void NET_FreeQSocket(qsocket_t *sock)
} }
double NET_QSocketGetTime (qsocket_t *s) double NET_QSocketGetTime (const qsocket_t *s)
{ {
return s->connecttime; return s->connecttime;
} }
const char *NET_QSocketGetAddressString (qsocket_t *s) const char *NET_QSocketGetAddressString (const qsocket_t *s)
{ {
return s->address; return s->address;
} }