diff options
author | rubidium <rubidium@openttd.org> | 2007-01-04 21:48:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-04 21:48:52 +0000 |
commit | 73079f83bc99d17571e547cfcc7c2c9c6ff31217 (patch) | |
tree | 14ee5feed2ea48a5d6f3bc1965768ced6fa0dd4d /src/network/core/packet.h | |
parent | b2f85eb044df4ea47ce53115f11a113d2914df24 (diff) | |
download | openttd-73079f83bc99d17571e547cfcc7c2c9c6ff31217.tar.xz |
(svn r7836) -Codechange: some constness for network/core.
Diffstat (limited to 'src/network/core/packet.h')
-rw-r--r-- | src/network/core/packet.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |