Mercurial > pidgin
changeset 30864:e32332ac385c
Get rid of the ack_id field in the SlpMessage in favor of the one in the Header.
author | masca@cpw.pidgin.im |
---|---|
date | Thu, 05 Aug 2010 22:41:22 +0000 |
parents | 16ab805406d1 |
children | b785e4256a66 |
files | libpurple/protocols/msn/slplink.c libpurple/protocols/msn/slpmsg.c libpurple/protocols/msn/slpmsg.h |
diffstat | 3 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c Thu Aug 05 21:58:13 2010 +0000 +++ b/libpurple/protocols/msn/slplink.c Thu Aug 05 22:41:22 2010 +0000 @@ -361,7 +361,6 @@ } else if (slpmsg->flags == P2P_ACK) { - slpmsg->header->ack_id = slpmsg->ack_id; slpmsg->header->ack_size = slpmsg->ack_size; slpmsg->header->ack_sub_id = slpmsg->ack_sub_id; } @@ -379,7 +378,6 @@ } else if (slpmsg->flags == 0x100) { - slpmsg->header->ack_id = slpmsg->ack_id; slpmsg->header->ack_sub_id = slpmsg->ack_sub_id; slpmsg->header->ack_size = slpmsg->ack_size; }
--- a/libpurple/protocols/msn/slpmsg.c Thu Aug 05 21:58:13 2010 +0000 +++ b/libpurple/protocols/msn/slpmsg.c Thu Aug 05 22:41:22 2010 +0000 @@ -245,7 +245,7 @@ slpmsg->header->session_id = header->session_id; slpmsg->size = header->total_size; slpmsg->flags = P2P_ACK; - slpmsg->ack_id = header->id; + slpmsg->header->ack_id = header->id; slpmsg->ack_sub_id = header->ack_id; slpmsg->ack_size = header->total_size; slpmsg->info = "SLP ACK";