projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56aad1b
)
Fix declaration of update_node_address().
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 20 Mar 2004 15:33:07 +0000
(15:33 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 20 Mar 2004 15:33:07 +0000
(15:33 +0000)
src/node.c
patch
|
blob
|
history
src/node.h
patch
|
blob
|
history
diff --git
a/src/node.c
b/src/node.c
index
79320e7
..
a9b8858
100644
(file)
--- a/
src/node.c
+++ b/
src/node.c
@@
-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;
node = avl_unlink(node_udp_tree, n);
sockaddrfree(&n->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);
if(n->hostname)
free(n->hostname);
diff --git
a/src/node.h
b/src/node.h
index
6dc7338
..
935b9a3
100644
(file)
--- 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 free_node(node_t *);
extern void node_add(node_t *);
extern void node_del(node_t *);
-extern void update_node_
udp
address(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);
extern node_t *lookup_node(char *);
extern node_t *lookup_node_udp(const sockaddr_t *);
extern void dump_nodes(void);