(svn r8479) -Fix (r8459): Silenced VC warning C4099: 'Packet' : type name first seen using 'class' now seen using 'struct'
authorKUDr
Wed, 31 Jan 2007 09:51:22 +0000
changeset 5881 9002ecbb05d3
parent 5880 702273c0850c
child 5882 56803443e5f9
(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'
src/network/core/core.h
src/network/core/packet.h
--- a/src/network/core/core.h	Wed Jan 31 09:49:02 2007 +0000
+++ b/src/network/core/core.h	Wed Jan 31 09:51:22 2007 +0000
@@ -30,7 +30,7 @@
 } NetworkRecvStatus;
 
 /** Forward declaration due to circular dependencies */
-class Packet;
+struct Packet;
 
 /**
  * SocketHandler for all network sockets in OpenTTD.
--- a/src/network/core/packet.h	Wed Jan 31 09:49:02 2007 +0000
+++ b/src/network/core/packet.h	Wed Jan 31 09:51:22 2007 +0000
@@ -24,9 +24,9 @@
  * 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 @@
 	PacketSize pos;
 	/** The buffer of this packet */
 	byte buffer[SEND_MTU];
-} Packet;
+};
 
 
 Packet *NetworkSend_Init(const PacketType type);