comparison src/prpl.c @ 1057:d50d3abb9eb7

[gaim-migrate @ 1067] attempting to pass -Wall (at least for app) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 03 Nov 2000 10:46:58 +0000
parents ece2d1543b20
children b0b40b5faede
comparison
equal deleted inserted replaced
1056:bde34730789c 1057:d50d3abb9eb7
48 48
49 void load_protocol(proto_init pi) 49 void load_protocol(proto_init pi)
50 { 50 {
51 struct prpl *p = g_new0(struct prpl, 1); 51 struct prpl *p = g_new0(struct prpl, 1);
52 struct prpl *old; 52 struct prpl *old;
53 GSList *n = protocols;
54 pi(p); 53 pi(p);
55 if (old = find_prpl(p->protocol)) 54 if ((old = find_prpl(p->protocol)) == NULL)
56 unload_protocol(old); 55 unload_protocol(old);
57 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare); 56 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare);
58 } 57 }
59 58
60 void unload_protocol(struct prpl *p) { 59 void unload_protocol(struct prpl *p) {