diff libgaim/protocols/oscar/peer.c @ 14348:80b05108652c

[gaim-migrate @ 17050] Use GSList in a few places instead of GList, and use g_list_prepend and then g_list_reverse in a few places instead of g_list_append committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 26 Aug 2006 19:12:05 +0000
parents 645598a4ec04
children 648e33275d9d
line wrap: on
line diff
--- a/libgaim/protocols/oscar/peer.c	Sat Aug 26 17:28:30 2006 +0000
+++ b/libgaim/protocols/oscar/peer.c	Sat Aug 26 19:12:05 2006 +0000
@@ -71,7 +71,7 @@
 PeerConnection *
 peer_connection_find_by_type(OscarData *od, const char *sn, OscarCapability type)
 {
-	GList *cur;
+	GSList *cur;
 	PeerConnection *conn;
 
 	for (cur = od->peer_connections; cur != NULL; cur = cur->next)
@@ -90,7 +90,7 @@
 PeerConnection *
 peer_connection_find_by_cookie(OscarData *od, const char *sn, const guchar *cookie)
 {
-	GList *cur;
+	GSList *cur;
 	PeerConnection *conn;
 
 	for (cur = od->peer_connections; cur != NULL; cur = cur->next)
@@ -126,7 +126,7 @@
 	else if (type == OSCAR_CAPABILITY_SENDFILE)
 		memcpy(conn->magic, "OFT2", 4);
 
-	od->peer_connections = g_list_prepend(od->peer_connections, conn);
+	od->peer_connections = g_slist_prepend(od->peer_connections, conn);
 
 	return conn;
 }
@@ -224,7 +224,7 @@
 	g_free(conn->verifiedip);
 	gaim_circ_buffer_destroy(conn->buffer_outgoing);
 
-	conn->od->peer_connections = g_list_remove(conn->od->peer_connections, conn);
+	conn->od->peer_connections = g_slist_remove(conn->od->peer_connections, conn);
 
 	g_free(conn);