diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-01 08:54:21 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-01 08:54:21 -0400 |
commit | 9f6b609e089f6b9941b2732ff3bb7b6995cb7798 (patch) | |
tree | c65c3e051e4e19dcbe4c330f1ad911a7c7ab92df /core/network.c | |
parent | d718af7f4d240b87bf17d55e45986352470776f3 (diff) |
Made code more portable.
Diffstat (limited to 'core/network.c')
-rw-r--r-- | core/network.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/network.c b/core/network.c index bbc1f570..e7999416 100644 --- a/core/network.c +++ b/core/network.c | |||
@@ -70,8 +70,8 @@ int recievepacket(IP_Port * ip_port, char * data, uint32_t * length) | |||
70 | { | 70 | { |
71 | ADDR addr; | 71 | ADDR addr; |
72 | uint32_t addrlen = sizeof(addr); | 72 | uint32_t addrlen = sizeof(addr); |
73 | (*(int *)length) = recvfrom(sock, data, MAX_UDP_PACKET_SIZE, 0, (struct sockaddr *)&addr, &addrlen); | 73 | (*(int32_t *)length) = recvfrom(sock, data, MAX_UDP_PACKET_SIZE, 0, (struct sockaddr *)&addr, &addrlen); |
74 | if(*(int *)length <= 0) | 74 | if(*(int32_t *)length <= 0) |
75 | { | 75 | { |
76 | //nothing received | 76 | //nothing received |
77 | //or empty packet | 77 | //or empty packet |