Fix declaration of update_node_address().
This commit is contained in:
parent
56aad1bb48
commit
8df2224829
2 changed files with 3 additions and 3 deletions
|
@ -150,12 +150,12 @@ void node_del(node_t *n)
|
||||||
avl_delete(node_udp_tree, 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;
|
avl_node_t *node;
|
||||||
|
|
||||||
node = avl_unlink(node_udp_tree, n);
|
node = avl_unlink(node_udp_tree, n);
|
||||||
sockaddrfree(&n->address);
|
sockaddrfree(&n->address);
|
||||||
sockaddrcpy(&n->address, &address);
|
sockaddrcpy(&n->address, address);
|
||||||
|
|
||||||
if(n->hostname)
|
if(n->hostname)
|
||||||
free(n->hostname);
|
free(n->hostname);
|
||||||
|
|
|
@ -90,7 +90,7 @@ extern node_t *new_node(void) __attribute__ ((__malloc__));
|
||||||
extern void free_node(node_t *);
|
extern void free_node(node_t *);
|
||||||
extern void node_add(node_t *);
|
extern void node_add(node_t *);
|
||||||
extern void node_del(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(char *);
|
||||||
extern node_t *lookup_node_udp(const sockaddr_t *);
|
extern node_t *lookup_node_udp(const sockaddr_t *);
|
||||||
extern void dump_nodes(void);
|
extern void dump_nodes(void);
|
||||||
|
|
Loading…
Reference in a new issue