projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fc7116a
)
edge_weight_compare() shouldn't rely on edge_compare().
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 6 Sep 2002 12:19:16 +0000
(12:19 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 6 Sep 2002 12:19:16 +0000
(12:19 +0000)
src/edge.c
patch
|
blob
|
history
diff --git
a/src/edge.c
b/src/edge.c
index
4a000e8
..
3ac0b1b
100644
(file)
--- a/
src/edge.c
+++ b/
src/edge.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.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: edge.c,v 1.1.2.1
3 2002/09/06 10:23:52
guus Exp $
+ $Id: edge.c,v 1.1.2.1
4 2002/09/06 12:19:16
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-56,8
+56,13
@@
int edge_weight_compare(edge_t *a, edge_t *b)
if(result)
return result;
if(result)
return result;
- else
- return edge_compare(a, b);
+
+ result = strcmp(a->from->name, b->from->name);
+
+ if(result)
+ return result;
+
+ return strcmp(a->to->name, b->to->name);
}
void init_edges(void)
}
void init_edges(void)