From f482a4fbafa73e38bc20176659a09701b4d1d2dc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 10 Sep 2004 21:51:11 +0000 Subject: [PATCH] remove unneeded custom type --- stepmania/src/NetworkSyncServer.cpp | 4 ++-- stepmania/src/NetworkSyncServer.h | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/stepmania/src/NetworkSyncServer.cpp b/stepmania/src/NetworkSyncServer.cpp index ead3848ff5..8668779148 100644 --- a/stepmania/src/NetworkSyncServer.cpp +++ b/stepmania/src/NetworkSyncServer.cpp @@ -506,9 +506,9 @@ void StepManiaLanServer::NewClientCheck() } -void StepManiaLanServer::SendValue(Uint8 value, int clientNum) +void StepManiaLanServer::SendValue(uint8_t value, int clientNum) { - Client[clientNum].clientSocket.SendPack((char*)&value, sizeof(Uint8)); + Client[clientNum].clientSocket.SendPack((char*)&value, sizeof(uint8_t)); } void StepManiaLanServer::RelayChat(PacketFunctions& Packet, int clientNum) diff --git a/stepmania/src/NetworkSyncServer.h b/stepmania/src/NetworkSyncServer.h index 61a9364053..9bce88643f 100644 --- a/stepmania/src/NetworkSyncServer.h +++ b/stepmania/src/NetworkSyncServer.h @@ -4,8 +4,6 @@ #include "ezsockets.h" #include "NetworkSyncManager.h" -typedef unsigned char Uint8; - #define NETMAXBUFFERSIZE 1020 #define NUMBERCLIENTS 16 @@ -99,7 +97,7 @@ private: int FindEmptyClient(); void NewClientCheck(); void ParseData(PacketFunctions& Packet, int clientNum); - void SendValue(Uint8 value, int clientNum); + void SendValue(uint8_t value, int clientNum); void CheckReady(); void MoveClientToHost(); void StatsComboColumn(PacketFunctions &data, LanPlayer *playersPtr[],