mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 14:01:26 +00:00
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:
parent
6854552809
commit
86a9748ddb
2 changed files with 4 additions and 4 deletions
|
@ -55,8 +55,8 @@ struct qsocket_s *NET_CheckNewConnections (void);
|
|||
struct qsocket_s *NET_Connect (const char *host);
|
||||
// called by client to connect to a host. Returns -1 if not able to
|
||||
|
||||
double NET_QSocketGetTime (struct qsocket_s *sock);
|
||||
const char *NET_QSocketGetAddressString (struct qsocket_s *sock);
|
||||
double NET_QSocketGetTime (const struct qsocket_s *sock);
|
||||
const char *NET_QSocketGetAddressString (const struct qsocket_s *sock);
|
||||
|
||||
qboolean NET_CanSendMessage (struct qsocket_s *sock);
|
||||
// Returns true or false if the given qsocket can currently accept a
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
const char *NET_QSocketGetAddressString (qsocket_t *s)
|
||||
const char *NET_QSocketGetAddressString (const qsocket_t *s)
|
||||
{
|
||||
return s->address;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue