changeset 31209:198d5bf82e09

Oops, forgot to save before commiting.
author masca@cpw.pidgin.im
date Fri, 04 Jun 2010 00:20:00 +0000
parents 2637509e0fc8
children 1059e5d29cd9
files libpurple/protocols/msn/p2p.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/p2p.c	Thu Jun 03 23:36:23 2010 +0000
+++ b/libpurple/protocols/msn/p2p.c	Fri Jun 04 00:20:00 2010 +0000
@@ -1,4 +1,6 @@
-#include "p2p->h"
+#include "internal.h"
+
+#include "p2p.h"
 
 MsnP2PHeader *
 msn_p2p_header_from_wire(MsnP2PHeader *wire)
@@ -25,7 +27,7 @@
 {
 	MsnP2PHeader *wire;
 	
-	g_new(MsnP2PHeader, 1);
+	wire = g_new(MsnP2PHeader, 1);
 
 	wire->session_id = GUINT32_TO_LE(header->session_id);
 	wire->id         = GUINT32_TO_LE(header->id);
@@ -37,5 +39,7 @@
 	wire->ack_sub_id = GUINT32_TO_LE(header->ack_sub_id);
 	wire->ack_size   = GUINT64_TO_LE(header->ack_size);
 
+	return wire;
+
 }