(svn r14949) -Cleanup: pointer coding style
This commit is contained in:
@@ -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;
|
||||
|
@@ -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. */
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user