From 86a9748ddb18f3dfd98a819047862bb9922432d2 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 1 Apr 2015 09:30:10 +0000 Subject: [PATCH] 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 --- Quake/net.h | 4 ++-- Quake/net_main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Quake/net.h b/Quake/net.h index 847fe107..a0784905 100644 --- a/Quake/net.h +++ b/Quake/net.h @@ -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 diff --git a/Quake/net_main.c b/Quake/net_main.c index 5d795563..bbd599af 100644 --- a/Quake/net_main.c +++ b/Quake/net_main.c @@ -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; }