search for: avl_tree_t

Displaying 3 results from an estimated 3 matches for "avl_tree_t".

2010 Sep 03
1
[PATCH] New '-o' option to configure server or hosts from command line
...line options */ + result = !b->file - !a->file; + if (result) + return result; + result = a->line - b->line; if(result) return result; else - return strcmp(a->file, b->file); + return a->file ? strcmp(a->file, b->file) : 0; } void init_configuration(avl_tree_t ** config_tree) { @@ -87,7 +94,7 @@ config_t *lookup_config(avl_tree_t *config_tree, char *variable) { config_t cfg, *found; cfg.variable = variable; - cfg.file = ""; + cfg.file = NULL; cfg.line = 0; found = avl_search_closest_greater(config_tree, &cfg); @@ -233,6 +240,...
2010 Nov 15
1
Dashes in node names
...hing which prevents appling such a diff?: ----- start diff ----- diff -ruNp tinc-1.0.13/src/protocol.c tinc-1.0.13.new1/src/protocol.c --- tinc-1.0.13/src/protocol.c 2010-03-13 18:53:33.000000000 +0100 +++ tinc-1.0.13.new1/src/protocol.c 2010-11-15 15:11:05.056142676 +0100 @@ -56,7 +56,7 @@ static avl_tree_t *past_request_tree; bool check_id(const char *id) { for(; *id; id++) - if(!isalnum(*id) && *id != '_') + if(!isalnum(*id) && *id != '_' && *id != '-') return false; return true;...
2007 Feb 13
2
[PATCH] Eternal flush, memory leaks
Using tincd 1.0.7, if I send a SIGALRM to tincd when a host is unresolvable, it gets stuck in a nasty loop: Feb 12 19:33:02 rosalyn tinc.slamb.org[2925]: Got ALRM signal Feb 12 19:33:02 rosalyn tinc.slamb.org[2925]: Trying to connect to calvin (216.136.66.56 port 655) Feb 12 19:33:02 rosalyn tinc.slamb.org[2925]: Error looking up slamb- linux.dyn.slamb.org port 4500: Name or service not