fix
authorChristian Grothoff <christian@grothoff.org>
Wed, 19 Jan 2011 09:23:50 +0000 (09:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 19 Jan 2011 09:23:50 +0000 (09:23 +0000)
src/vpn/gnunet-daemon-vpn.c
src/vpn/gnunet-helper-vpn.c

index 6abac6460102d862324d41266f75b4feed9db576..1e0afea355cb750833d28a6d71f1faa02788743f 100644 (file)
@@ -313,7 +313,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) {
          }
 
        struct map_entry* map_entry = GNUNET_CONTAINER_multihashmap_get(hashmap, &key);
-       unsigned short offset = ntohs(pkt->addroffset);
+       uint16_t offset = ntohs(pkt->addroffset);
 
        if (map_entry == NULL)
          {
index f01b873ebe05c29db5d9d34a50890e8d9ef1577e..e495b4c3c9fcf001191543f3cb16e07d4787290a 100644 (file)
@@ -288,6 +288,7 @@ outer:
        }
 
       int r = select (fd_tun + 1, &fds_r, &fds_w, NULL, NULL);
+      /* FIXME: if error... */
       if (r > 0)
        {
          if (FD_ISSET (fd_tun, &fds_w))