From 8ff344897a5937b45820b42127b70e1938f97ed0 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 19 Jan 2013 16:39:34 +0200 Subject: added userData field to ENetPacket --- packet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packet.c') diff --git a/packet.c b/packet.c index 3adb287..9a997be 100644 --- a/packet.c +++ b/packet.c @@ -45,6 +45,7 @@ enet_packet_create (const void * data, size_t dataLength, enet_uint32 flags) packet -> flags = flags; packet -> dataLength = dataLength; packet -> freeCallback = NULL; + packet -> userData = NULL; return packet; } @@ -115,7 +116,7 @@ reflect_crc (int val, int bits) } static void -initialize_crc32 () +initialize_crc32 (void) { int byte; -- cgit v1.2.3