From 8df22248293a8cd5e6056415b6e08740e40aa2bc Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 20 Mar 2004 15:33:07 +0000 Subject: [PATCH] Fix declaration of update_node_address(). --- src/node.c | 4 ++-- src/node.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.c b/src/node.c index 79320e7..a9b8858 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 6dc7338..935b9a3 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); -- 2.25.1