changeset 32025:c23778d56269

Add the slplink as a parameter when creating a slpmsg ack.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 09 May 2011 06:56:18 +0000
parents 2201ecdf0c45
children 37dda442bb8f
files libpurple/protocols/msn/slplink.c libpurple/protocols/msn/slpmsg.c
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Mon May 09 06:44:45 2011 +0000
+++ b/libpurple/protocols/msn/slplink.c	Mon May 09 06:56:18 2011 +0000
@@ -410,8 +410,7 @@
 {
 	MsnSlpMessage *slpmsg;
 
-	slpmsg = msn_slpmsg_ack_new(info);
-	msn_slpmsg_set_slplink(slpmsg, slplink);
+	slpmsg = msn_slpmsg_ack_new(slplink, info);
 
 	return slpmsg;
 }
--- a/libpurple/protocols/msn/slpmsg.c	Mon May 09 06:44:45 2011 +0000
+++ b/libpurple/protocols/msn/slpmsg.c	Mon May 09 06:56:18 2011 +0000
@@ -196,12 +196,12 @@
 	return slpmsg;
 }
 
-MsnSlpMessage *msn_slpmsg_ack_new(MsnP2PInfo *ack_info)
+MsnSlpMessage *msn_slpmsg_ack_new(MsnSlpLink *slplink, MsnP2PInfo *ack_info)
 {
 	MsnSlpMessage *slpmsg;
 	MsnP2PInfo *new_info;
 
-	slpmsg = msn_slpmsg_new(NULL, NULL);
+	slpmsg = msn_slpmsg_new(slplink, NULL);
 
 	new_info = slpmsg->p2p_info;
 	msn_p2p_info_create_ack(ack_info, new_info);