summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
committerrubidium <rubidium@openttd.org>2009-01-10 00:31:47 +0000
commit28ea38ae5572d99598aa400fb62eb38f5f7ffd7b (patch)
tree29e703244d28f29c8634b2d30f42b34852fe74bc /src/network/core
parent86d50b6415635d1f1fb87bd62f1e08aa7b8f0033 (diff)
downloadopenttd-28ea38ae5572d99598aa400fb62eb38f5f7ffd7b.tar.xz
(svn r14949) -Cleanup: pointer coding style
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/host.cpp2
-rw-r--r--src/network/core/packet.cpp2
-rw-r--r--src/network/core/packet.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp
index beddb6d7e..c88c96f55 100644
--- a/src/network/core/host.cpp
+++ b/src/network/core/host.cpp
@@ -160,7 +160,7 @@ static int NetworkFindBroadcastIPsInternal(uint32 *broadcast, int limit) // !GET
const char *buf_end = buf + ifconf.ifc_len;
int index = 0;
for (const char *p = buf; p < buf_end && index != limit;) {
- const struct ifreq* req = (const struct ifreq*)p;
+ const struct ifreq *req = (const struct ifreq*)p;
if (req->ifr_addr.sa_family == AF_INET) {
struct ifreq r;
diff --git a/src/network/core/packet.cpp b/src/network/core/packet.cpp
index 62ab4c61a..21d8cf5df 100644
--- a/src/network/core/packet.cpp
+++ b/src/network/core/packet.cpp
@@ -124,7 +124,7 @@ void Packet::Send_uint64(uint64 data)
* the string + '\0'. No size-byte or something.
* @param data the string to send
*/
-void Packet::Send_string(const char* data)
+void Packet::Send_string(const char *data)
{
assert(data != NULL);
/* The <= *is* valid due to the fact that we are comparing sizes and not the index. */
diff --git a/src/network/core/packet.h b/src/network/core/packet.h
index 295c4e8c2..1dd35a70d 100644
--- a/src/network/core/packet.h
+++ b/src/network/core/packet.h
@@ -50,7 +50,7 @@ public:
void Send_uint16(uint16 data);
void Send_uint32(uint32 data);
void Send_uint64(uint64 data);
- void Send_string(const char* data);
+ void Send_string(const char *data);
/* Reading/receiving of packets */
void ReadRawPacketSize();
@@ -62,7 +62,7 @@ public:
uint16 Recv_uint16();
uint32 Recv_uint32();
uint64 Recv_uint64();
- void Recv_string(char* buffer, size_t size);
+ void Recv_string(char *buffer, size_t size);
};
Packet *NetworkSend_Init(PacketType type);