comparison src/protocols/novell/nmcontact.c @ 8769:0bde91a2ea4d

[gaim-migrate @ 9530] Ughhh... C99 committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 23 Apr 2004 06:14:15 +0000
parents 046dd8ef2920
children 7df86465ec82
comparison
equal deleted inserted replaced
8768:585f43fb52a1 8769:0bde91a2ea4d
699 } 699 }
700 700
701 void 701 void
702 nm_folder_remove_contact(NMFolder * folder, NMContact * contact) 702 nm_folder_remove_contact(NMFolder * folder, NMContact * contact)
703 { 703 {
704 GSList *node = folder->contacts;
705
704 if (folder == NULL || contact == NULL) 706 if (folder == NULL || contact == NULL)
705 return; 707 return;
706
707 GSList *node = folder->contacts;
708 708
709 while (node) { 709 while (node) {
710 if (contact->id == ((NMContact *) (node->data))->id) { 710 if (contact->id == ((NMContact *) (node->data))->id) {
711 folder->contacts = g_slist_remove(folder->contacts, node->data); 711 folder->contacts = g_slist_remove(folder->contacts, node->data);
712 nm_release_contact(contact); 712 nm_release_contact(contact);