aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn.c
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-05-04 07:30:05 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-05-04 07:30:05 +0000
commitb0a0cc3b954911a42ffd376b9d84d9536fc82a5c (patch)
tree6abe4925c68d022ff660db47920294ff15be4082 /src/vpn/gnunet-daemon-vpn.c
parent2dd926e8fd80a05d3dffbf05845fffec638a282d (diff)
downloadgnunet-b0a0cc3b954911a42ffd376b9d84d9536fc82a5c.tar.gz
gnunet-b0a0cc3b954911a42ffd376b9d84d9536fc82a5c.zip
fix compile-errors
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index 6829b3cd9..72f52eccc 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -236,6 +236,12 @@ new_ip6addr(unsigned char* buf, const GNUNET_HashCode *peer, const GNUNET_HashCo
236} 236}
237/*}}}*/ 237/*}}}*/
238 238
239char
240max (char a, char b)
241{
242 return a > b ? a : b;
243}
244
239/** 245/**
240 * Create a new Address from an answer-packet 246 * Create a new Address from an answer-packet
241 */ 247 */
@@ -396,7 +402,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) {
396 memset(&key, 0, sizeof(GNUNET_HashCode)); 402 memset(&key, 0, sizeof(GNUNET_HashCode));
397 403
398 unsigned char* c = ((unsigned char*)pkt)+ntohs(pkt->addroffset); 404 unsigned char* c = ((unsigned char*)pkt)+ntohs(pkt->addroffset);
399 new_ip6addr_remote(c, &pkt->addr, pkt->addrsize); 405 new_ip6addr_remote(c, pkt->addr, pkt->addrsize);
400 unsigned char* k = (unsigned char*)&key; 406 unsigned char* k = (unsigned char*)&key;
401 /* 407 /*
402 * Copy the newly generated ip-address to the key backwards (as only the first part is used in the hash-table) 408 * Copy the newly generated ip-address to the key backwards (as only the first part is used in the hash-table)