summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-01-31 09:51:22 +0000
committerKUDr <kudr@openttd.org>2007-01-31 09:51:22 +0000
commitf9462a50e97bb36c8500576c945888de5819df05 (patch)
tree7704e036050ae43b2448c6c4a44553261970adbf /src
parentd1b861a3dca1a9f5ce26a6caa3b016a6d3b80841 (diff)
downloadopenttd-f9462a50e97bb36c8500576c945888de5819df05.tar.xz
(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
-Codechange: 'typedef struct Packet' changed to 'struct Packet'
Diffstat (limited to 'src')
-rw-r--r--src/network/core/core.h2
-rw-r--r--src/network/core/packet.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/network/core/core.h b/src/network/core/core.h
index 729145e7f..29c595cd6 100644
--- a/src/network/core/core.h
+++ b/src/network/core/core.h
@@ -30,7 +30,7 @@ typedef enum {
} NetworkRecvStatus;
/** Forward declaration due to circular dependencies */
-class Packet;
+struct Packet;
/**
* SocketHandler for all network sockets in OpenTTD.
diff --git a/src/network/core/packet.h b/src/network/core/packet.h
index 65ddec72c..641fd4ad2 100644
--- a/src/network/core/packet.h
+++ b/src/network/core/packet.h
@@ -24,9 +24,9 @@ typedef uint8 PacketType; ///< Identifier for the packet
* packet. Reading past the size of the packet when receiving
* will return all 0 values and "" in case of the string.
*/
-typedef struct Packet {
+struct Packet {
/** The next packet. Used for queueing packets before sending. */
- struct Packet *next;
+ Packet *next;
/** The size of the whole packet for received packets. For packets
* that will be sent, the value is filled in just before the
* actual transmission. */
@@ -35,7 +35,7 @@ typedef struct Packet {
PacketSize pos;
/** The buffer of this packet */
byte buffer[SEND_MTU];
-} Packet;
+};
Packet *NetworkSend_Init(const PacketType type);