-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc index ae6d406..3d5a923 100644 --- a/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc +++ b/noncore/net/wellenreiter/libwellenreiter/source/wl_proto.cc | |||
@@ -41,13 +41,13 @@ int get_field(const char *buffer, char *out) | |||
41 | 41 | ||
42 | /* Send found network to UI */ | 42 | /* Send found network to UI */ |
43 | int send_network_found (const char *guihost, int guiport, void *structure) | 43 | int send_network_found (const char *guihost, int guiport, void *structure) |
44 | { | 44 | { |
45 | wl_network_t *ptr; | 45 | wl_network_t *ptr; |
46 | char buffer[2048], temp[5]; | 46 | char buffer[2048], temp[5]; |
47 | int len = 0; | 47 | unsigned int len = 0; |
48 | 48 | ||
49 | ptr = (wl_network_t *)structure; | 49 | ptr = (wl_network_t *)structure; |
50 | 50 | ||
51 | /* Type = Found new net (without length field) */ | 51 | /* Type = Found new net (without length field) */ |
52 | memset(temp, 0, sizeof(temp)); | 52 | memset(temp, 0, sizeof(temp)); |
53 | snprintf(temp, sizeof(temp), "%.2d", NETFOUND); | 53 | snprintf(temp, sizeof(temp), "%.2d", NETFOUND); |
@@ -88,13 +88,13 @@ int send_network_found (const char *guihost, int guiport, void *structure) | |||
88 | 88 | ||
89 | /* Fill buffer into structur */ | 89 | /* Fill buffer into structur */ |
90 | int get_network_found (void *structure, const char *buffer) | 90 | int get_network_found (void *structure, const char *buffer) |
91 | { | 91 | { |
92 | wl_network_t *ptr; | 92 | wl_network_t *ptr; |
93 | char temp[5]; | 93 | char temp[5]; |
94 | int len = 0; | 94 | unsigned int len = 0; |
95 | 95 | ||
96 | ptr = (wl_network_t *)structure; | 96 | ptr = (wl_network_t *)structure; |
97 | 97 | ||
98 | /* packet type already determined, skip check */ | 98 | /* packet type already determined, skip check */ |
99 | len += 2; | 99 | len += 2; |
100 | 100 | ||