comparison mcabber/mcabber/roster.c @ 1729:e6e89b1d7831

Minor style and header updates
author Mikael Berthe <mikael@lilotux.net>
date Sun, 28 Feb 2010 15:19:27 +0100
parents 15e6b21df606
children b135572fcd26
comparison
equal deleted inserted replaced
1728:15b3834cbe5f 1729:e6e89b1d7831
1 /* 1 /*
2 * roster.c -- Local roster implementation 2 * roster.c -- Local roster implementation
3 * 3 *
4 * Copyright (C) 2005-2009 Mikael Berthe <mikael@lilotux.net> 4 * Copyright (C) 2005-2010 Mikael Berthe <mikael@lilotux.net>
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by 7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or (at 8 * the Free Software Foundation; either version 2 of the License, or (at
9 * your option) any later version. 9 * your option) any later version.
166 *reslist = NULL; 166 *reslist = NULL;
167 } 167 }
168 168
169 // Resources are sorted in ascending order 169 // Resources are sorted in ascending order
170 static gint resource_compare_prio(res *a, res *b) { 170 static gint resource_compare_prio(res *a, res *b) {
171 //return (a->prio - b->prio);
172 if (a->prio < b->prio) return -1; 171 if (a->prio < b->prio) return -1;
173 else return 1; 172 else return 1;
174 } 173 }
175 174
176 // get_resource(rost, resname) 175 // get_resource(rost, resname)