author | mjm <mjm> | 2002-12-28 15:40:30 (UTC) |
---|---|---|
committer | mjm <mjm> | 2002-12-28 15:40:30 (UTC) |
commit | b8ade08c754775d594192e79f33ea9ecc1a3686c (patch) (side-by-side diff) | |
tree | 9037709b052c04b7c9aab6a645cf7bcb020fc82b | |
parent | 94ac3da47b0b36316cff680d319dab23c9339308 (diff) | |
download | opie-b8ade08c754775d594192e79f33ea9ecc1a3686c.zip opie-b8ade08c754775d594192e79f33ea9ecc1a3686c.tar.gz opie-b8ade08c754775d594192e79f33ea9ecc1a3686c.tar.bz2 |
stupidity error
-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 @@ -35,25 +35,25 @@ int get_field(const char *buffer, char *out) memset(out, 0, atoi(len) + 1); memcpy(out, buffer + 3, atoi(len)); /* Return length of whole field (including 3 byte length) */ return (atoi(len) + 3); } /* Send found network to UI */ int send_network_found (const char *guihost, int guiport, void *structure) { wl_network_t *ptr; char buffer[2048], temp[5]; - int len = 0; + unsigned int len = 0; ptr = (wl_network_t *)structure; /* Type = Found new net (without length field) */ memset(temp, 0, sizeof(temp)); snprintf(temp, sizeof(temp), "%.2d", NETFOUND); memcpy(buffer, temp, 2); len += 2; /* Set Net-type */ memset(temp, 0, sizeof(temp)); snprintf(temp, sizeof(temp), "%d", ptr->net_type); @@ -82,25 +82,25 @@ int send_network_found (const char *guihost, int guiport, void *structure) #ifdef DEBUG wl_loginfo("Sending network to UI: '%s'", buffer); #endif return ((!wl_send(guihost, guiport, buffer)) ? 0 : 1); } /* Fill buffer into structur */ int get_network_found (void *structure, const char *buffer) { wl_network_t *ptr; char temp[5]; - int len = 0; + unsigned int len = 0; ptr = (wl_network_t *)structure; /* packet type already determined, skip check */ len += 2; /* Get net type (accesspoint || ad-hoc || ...) */ memset(temp, 0, sizeof(temp)); len += get_field(buffer + len, temp); ptr->net_type = atoi(temp); /* Get channel */ |