Browse Source

Update sn_utils.c (#496)

fix  compile error in Visual Studio 2015 #495
pull/500/head
skyformat99 4 years ago
committed by GitHub
parent
commit
2930f34bb9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/sn_utils.c

8
src/sn_utils.c

@ -1293,8 +1293,8 @@ static int process_udp(n2n_sn_t * sss,
} }
} }
tmp_sock = (void *)dec_tmpbuf; tmp_sock = (n2n_sock_t *)dec_tmpbuf;
tmp_mac = (void*)dec_tmpbuf + sizeof(n2n_sock_t); tmp_mac = (n2n_sock_t *)dec_tmpbuf + sizeof(n2n_sock_t);
for(i=0; i<ack.num_sn; i++) { for(i=0; i<ack.num_sn; i++) {
skip_add = SN_ADD; skip_add = SN_ADD;
@ -1305,8 +1305,8 @@ static int process_udp(n2n_sn_t * sss,
} }
/* REVISIT: find a more elegant expression to increase following pointers. */ /* REVISIT: find a more elegant expression to increase following pointers. */
tmp_sock = (void*)tmp_sock + REG_SUPER_ACK_PAYLOAD_ENTRY_SIZE; tmp_sock = tmp_sock + REG_SUPER_ACK_PAYLOAD_ENTRY_SIZE;
tmp_mac = (void*)tmp_sock + sizeof(n2n_sock_t); tmp_mac = tmp_sock + sizeof(n2n_sock_t);
} }
break; break;

Loading…
Cancel
Save