Mercurial > pidgin.yaz
comparison src/blist.c @ 10368:ffb5f76d6188
[gaim-migrate @ 11587]
whitespace, and remove a unused variable
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Tue, 14 Dec 2004 20:08:13 +0000 |
parents | 655c48791b3c |
children | 28135f8c226d |
comparison
equal
deleted
inserted
replaced
10367:5fe89d2df440 | 10368:ffb5f76d6188 |
---|---|
132 for (bnode = ((GaimBlistNode*)contact)->child; | 132 for (bnode = ((GaimBlistNode*)contact)->child; |
133 bnode != NULL; | 133 bnode != NULL; |
134 bnode = bnode->next) | 134 bnode = bnode->next) |
135 { | 135 { |
136 GaimBuddy *buddy; | 136 GaimBuddy *buddy; |
137 GaimPresence *presence; | |
138 | 137 |
139 if (!GAIM_BLIST_NODE_IS_BUDDY(bnode)) | 138 if (!GAIM_BLIST_NODE_IS_BUDDY(bnode)) |
140 continue; | 139 continue; |
141 | 140 |
142 buddy = (GaimBuddy*)bnode; | 141 buddy = (GaimBuddy*)bnode; |
147 new_priority = buddy; | 146 new_priority = buddy; |
148 else | 147 else |
149 { | 148 { |
150 int cmp; | 149 int cmp; |
151 | 150 |
152 presence = gaim_buddy_get_presence(buddy); | 151 cmp = gaim_presence_compare(gaim_buddy_get_presence(new_priority), |
153 | 152 gaim_buddy_get_presence(buddy)); |
154 cmp = gaim_presence_compare(gaim_buddy_get_presence(new_priority), | |
155 gaim_buddy_get_presence(buddy)); | |
156 | 153 |
157 if (cmp > 0 || (cmp == 0 && | 154 if (cmp > 0 || (cmp == 0 && |
158 gaim_prefs_get_bool("/core/contact/last_match"))) | 155 gaim_prefs_get_bool("/core/contact/last_match"))) |
159 { | 156 { |
160 new_priority = buddy; | 157 new_priority = buddy; |
161 } | 158 } |
162 } | 159 } |
163 } | 160 } |