X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fconnection.c;h=07960940649532f68b6302574f599cbab2d3a959;hp=66eb0596bdc41bf4fb0c4518611a724d1aa1c4da;hb=c217d214f4f071c235bc7c463a1da6124e2570a6;hpb=81afa26e4ad53bea00da18a7666f63d33cf3f588 diff --git a/src/connection.c b/src/connection.c index 66eb0596..07960940 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1,6 +1,6 @@ /* connection.c -- connection list management - Copyright (C) 2000-2007 Guus Sliepen , + Copyright (C) 2000-2009 Guus Sliepen , 2000-2005 Ivo Timmermans This program is free software; you can redistribute it and/or modify @@ -16,8 +16,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - - $Id$ */ #include "system.h" @@ -37,7 +35,7 @@ connection_t *broadcast; static int connection_compare(const connection_t *a, const connection_t *b) { - return a - b; + return a < b ? -1 : a == b ? 0 : 1; } void init_connections(void)