From 73079f83bc99d17571e547cfcc7c2c9c6ff31217 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 4 Jan 2007 21:48:52 +0000 Subject: (svn r7836) -Codechange: some constness for network/core. --- src/network/core/packet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network/core/packet.h') diff --git a/src/network/core/packet.h b/src/network/core/packet.h index a44c6b50e..e42c65d5c 100644 --- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -21,7 +21,7 @@ typedef struct NetworkClientState NetworkClientState; * @param cs the state to query * @param true if the connection should be considered dropped */ -bool HasClientQuit(NetworkClientState *cs); +bool HasClientQuit(const NetworkClientState *cs); typedef uint16 PacketSize; ///< Size of the whole packet. typedef uint8 PacketType; ///< Identifier for the packet @@ -49,7 +49,7 @@ typedef struct Packet { } Packet; -Packet *NetworkSend_Init(PacketType type); +Packet *NetworkSend_Init(const PacketType type); void NetworkSend_FillPacketSize(Packet *packet); void NetworkSend_uint8 (Packet *packet, uint8 data); void NetworkSend_uint16(Packet *packet, uint16 data); -- cgit v1.2.3-54-g00ecf