summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
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);