diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-19 09:23:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-19 09:23:50 +0000 |
commit | 04b193a6fbdf63c8c70a10a588b3e996132afa63 (patch) | |
tree | 337b28d72d9133345ef0cdefa4edfefa6a1ddad2 /src | |
parent | 03f38130ddef74e3aa66ef9a5a17aa780c28cde4 (diff) | |
download | gnunet-04b193a6fbdf63c8c70a10a588b3e996132afa63.tar.gz gnunet-04b193a6fbdf63c8c70a10a588b3e996132afa63.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 2 | ||||
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 6abac6460..1e0afea35 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -313,7 +313,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) { | |||
313 | } | 313 | } |
314 | 314 | ||
315 | struct map_entry* map_entry = GNUNET_CONTAINER_multihashmap_get(hashmap, &key); | 315 | struct map_entry* map_entry = GNUNET_CONTAINER_multihashmap_get(hashmap, &key); |
316 | unsigned short offset = ntohs(pkt->addroffset); | 316 | uint16_t offset = ntohs(pkt->addroffset); |
317 | 317 | ||
318 | if (map_entry == NULL) | 318 | if (map_entry == NULL) |
319 | { | 319 | { |
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index f01b873eb..e495b4c3c 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c | |||
@@ -288,6 +288,7 @@ outer: | |||
288 | } | 288 | } |
289 | 289 | ||
290 | int r = select (fd_tun + 1, &fds_r, &fds_w, NULL, NULL); | 290 | int r = select (fd_tun + 1, &fds_r, &fds_w, NULL, NULL); |
291 | /* FIXME: if error... */ | ||
291 | if (r > 0) | 292 | if (r > 0) |
292 | { | 293 | { |
293 | if (FD_ISSET (fd_tun, &fds_w)) | 294 | if (FD_ISSET (fd_tun, &fds_w)) |