From: Guus Sliepen Date: Sat, 20 Mar 2004 15:33:07 +0000 (+0000) Subject: Fix declaration of update_node_address(). X-Git-Tag: release-1.0.3~37^2~2 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=8df22248293a8cd5e6056415b6e08740e40aa2bc;p=tinc Fix declaration of update_node_address(). --- diff --git a/src/node.c b/src/node.c index 79320e71..a9b8858a 100644 --- a/src/node.c +++ b/src/node.c @@ -150,12 +150,12 @@ void node_del(node_t *n) avl_delete(node_udp_tree, n); } -void update_node_address(node_t *n, const sockaddr_t address) { +void update_node_address(node_t *n, const sockaddr_t *address) { avl_node_t *node; node = avl_unlink(node_udp_tree, n); sockaddrfree(&n->address); - sockaddrcpy(&n->address, &address); + sockaddrcpy(&n->address, address); if(n->hostname) free(n->hostname); diff --git a/src/node.h b/src/node.h index 6dc7338b..935b9a31 100644 --- a/src/node.h +++ b/src/node.h @@ -90,7 +90,7 @@ extern node_t *new_node(void) __attribute__ ((__malloc__)); extern void free_node(node_t *); extern void node_add(node_t *); extern void node_del(node_t *); -extern void update_node_udpaddress(node_t *, const sockaddr_t *); +extern void update_node_address(node_t *, const sockaddr_t *); extern node_t *lookup_node(char *); extern node_t *lookup_node_udp(const sockaddr_t *); extern void dump_nodes(void);