X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnode.c;h=b69c5b1c74e0d8b8210e7e9a3a958bb93beb39b9;hp=5fb3d0d7b898d5b75d6885c410823e247e7742f7;hb=fcbe29bc4cc67530581a36cf1a3a1445c741b8e5;hpb=de223b51b94c58d1674f1ef56e9d485ff48d366d diff --git a/src/node.c b/src/node.c index 5fb3d0d7..b69c5b1c 100644 --- a/src/node.c +++ b/src/node.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: node.c,v 1.1.2.25 2003/07/29 10:50:15 guus Exp $ + $Id: node.c,v 1.1.2.26 2003/07/30 11:50:45 guus Exp $ */ #include "system.h" @@ -145,24 +145,24 @@ void node_del(node_t *n) node_t *lookup_node(char *name) { - node_t n = { - .name = name, - }; + node_t n = {0}; cp(); + n.name = name; + return avl_search(node_tree, &n); } node_t *lookup_node_udp(const sockaddr_t *sa) { - node_t n = { - .address = *sa, - .name = NULL, - }; + node_t n = {0}; cp(); + n.address = *sa; + n.name = NULL; + return avl_search(node_udp_tree, &n); }