diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 11:47:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 11:47:46 +0000 |
commit | 36bb92ae241403d61dc7a3e5a1696b615be61395 (patch) | |
tree | 5676d0d54be47c40d975fdeb1026317fc2a010db /src/network/core | |
parent | a69e3b1c45f12ee6f21a4ac1c8a8f8bc0892f226 (diff) | |
download | openttd-36bb92ae241403d61dc7a3e5a1696b615be61395.tar.xz |
(svn r9050) -Codechange: Foo(void) -> Foo()
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/core.cpp | 4 | ||||
-rw-r--r-- | src/network/core/core.h | 4 | ||||
-rw-r--r-- | src/network/core/packet.cpp | 16 | ||||
-rw-r--r-- | src/network/core/packet.h | 16 |
4 files changed, 20 insertions, 20 deletions
diff --git a/src/network/core/core.cpp b/src/network/core/core.cpp index 7fb10cfaf..1f60aba80 100644 --- a/src/network/core/core.cpp +++ b/src/network/core/core.cpp @@ -21,7 +21,7 @@ struct Library *SocketBase = NULL; * Initializes the network core (as that is needed for some platforms * @return true if the core has been initialized, false otherwise */ -bool NetworkCoreInitialize(void) +bool NetworkCoreInitialize() { #if defined(__MORPHOS__) || defined(__AMIGA__) /* @@ -72,7 +72,7 @@ bool NetworkCoreInitialize(void) /** * Shuts down the network core (as that is needed for some platforms */ -void NetworkCoreShutdown(void) +void NetworkCoreShutdown() { #if defined(__MORPHOS__) || defined(__AMIGA__) /* free allocated resources */ diff --git a/src/network/core/core.h b/src/network/core/core.h index 990100a69..c07f5ab81 100644 --- a/src/network/core/core.h +++ b/src/network/core/core.h @@ -12,8 +12,8 @@ #include "os_abstraction.h" #include "../../newgrf_config.h" -bool NetworkCoreInitialize(void); -void NetworkCoreShutdown(void); +bool NetworkCoreInitialize(); +void NetworkCoreShutdown(); /** Status of a network client; reasons why a client has quit */ typedef enum { diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp index e43908d83..8d85e9ad5 100644 --- a/src/network/core/packet.cpp +++ b/src/network/core/packet.cpp @@ -63,7 +63,7 @@ Packet *NetworkSend_Init(PacketType type) /** * Writes the packet size from the raw packet from packet->size */ -void Packet::PrepareToSend(void) +void Packet::PrepareToSend() { assert(this->cs == NULL && this->next == NULL); @@ -163,7 +163,7 @@ bool Packet::CanReadFromPacket(uint bytes_to_read) /** * Reads the packet size from the raw packet and stores it in the packet->size */ -void Packet::ReadRawPacketSize(void) +void Packet::ReadRawPacketSize() { assert(this->cs != NULL && this->next == NULL); this->size = (PacketSize)this->buffer[0]; @@ -173,7 +173,7 @@ void Packet::ReadRawPacketSize(void) /** * Prepares the packet so it can be read */ -void Packet::PrepareToRead(void) +void Packet::PrepareToRead() { this->ReadRawPacketSize(); @@ -181,12 +181,12 @@ void Packet::PrepareToRead(void) this->pos = sizeof(PacketSize); } -bool Packet::Recv_bool(void) +bool Packet::Recv_bool() { return this->Recv_uint8() != 0; } -uint8 Packet::Recv_uint8(void) +uint8 Packet::Recv_uint8() { uint8 n; @@ -196,7 +196,7 @@ uint8 Packet::Recv_uint8(void) return n; } -uint16 Packet::Recv_uint16(void) +uint16 Packet::Recv_uint16() { uint16 n; @@ -207,7 +207,7 @@ uint16 Packet::Recv_uint16(void) return n; } -uint32 Packet::Recv_uint32(void) +uint32 Packet::Recv_uint32() { uint32 n; @@ -220,7 +220,7 @@ uint32 Packet::Recv_uint32(void) return n; } -uint64 Packet::Recv_uint64(void) +uint64 Packet::Recv_uint64() { uint64 n; diff --git a/src/network/core/packet.h b/src/network/core/packet.h index 47fff6247..295c4e8c2 100644 --- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -43,7 +43,7 @@ public: Packet(PacketType type); /* Sending/writing of packets */ - void PrepareToSend(void); + void PrepareToSend(); void Send_bool (bool data); void Send_uint8 (uint8 data); @@ -53,15 +53,15 @@ public: void Send_string(const char* data); /* Reading/receiving of packets */ - void ReadRawPacketSize(void); - void PrepareToRead(void); + void ReadRawPacketSize(); + void PrepareToRead(); bool CanReadFromPacket (uint bytes_to_read); - bool Recv_bool (void); - uint8 Recv_uint8 (void); - uint16 Recv_uint16(void); - uint32 Recv_uint32(void); - uint64 Recv_uint64(void); + bool Recv_bool (); + uint8 Recv_uint8 (); + uint16 Recv_uint16(); + uint32 Recv_uint32(); + uint64 Recv_uint64(); void Recv_string(char* buffer, size_t size); }; |