pidgin: 592415bd: OK, so maybe this one does need to be st...

qulogic at pidgin.im qulogic at pidgin.im
Fri May 21 18:03:20 EDT 2010


-----------------------------------------------------------------
Revision: 592415bded8bd885eb48cef43157b5a908e16562
Ancestor: fb061afd578da93a8feb5daadcbd6618ea8f319d
Author: qulogic at pidgin.im
Date: 2010-03-18T03:54:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/592415bded8bd885eb48cef43157b5a908e16562

Modified files:
        libpurple/protocols/msn/directconn.c

ChangeLog: 

OK, so maybe this one does need to be static.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/directconn.c	b7f793a5afe49f51b03dbfa6145c8a581e3fc1d4
+++ libpurple/protocols/msn/directconn.c	90b315ab90dacc7baf362c1c4c333e31ddde3d3b
@@ -422,10 +422,10 @@ msn_dc_parse_binary_header(MsnDirectConn
 	h->ack_size = GUINT64_FROM_LE(h->ack_size);
 }
 
-static gchar*
+static const gchar *
 msn_dc_serialize_binary_header(MsnDirectConn *dc) {
 	MsnSlpHeader h;
-	gchar bin_header[DC_PACKET_HEADER_SIZE];
+	static gchar bin_header[DC_PACKET_HEADER_SIZE];
 
 	g_return_val_if_fail(dc != NULL, NULL);
 
@@ -686,7 +686,7 @@ msn_dc_send_handshake(MsnDirectConn *dc)
 msn_dc_send_handshake(MsnDirectConn *dc)
 {
 	MsnDirectConnPacket *p;
-	gchar *h;
+	const gchar *h;
 	guint32 l;
 
 	g_return_if_fail(dc != NULL);
@@ -718,7 +718,7 @@ msn_dc_send_handshake_reply(MsnDirectCon
 msn_dc_send_handshake_reply(MsnDirectConn *dc)
 {
 	MsnDirectConnPacket *p;
-	gchar *h;
+	const gchar *h;
 	guint32 l;
 
 	g_return_if_fail(dc != NULL);


More information about the Commits mailing list