changeset 30018:e0c368986e1f

OK, so maybe this one does need to be static.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 18 Mar 2010 03:54:48 +0000
parents 519b65d500ff
children bc720282a62d
files libpurple/protocols/msn/directconn.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c	Thu Mar 18 03:49:05 2010 +0000
+++ b/libpurple/protocols/msn/directconn.c	Thu Mar 18 03:54:48 2010 +0000
@@ -422,10 +422,10 @@
 	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)
 {
 	MsnDirectConnPacket *p;
-	gchar *h;
+	const gchar *h;
 	guint32 l;
 
 	g_return_if_fail(dc != NULL);
@@ -718,7 +718,7 @@
 msn_dc_send_handshake_reply(MsnDirectConn *dc)
 {
 	MsnDirectConnPacket *p;
-	gchar *h;
+	const gchar *h;
 	guint32 l;
 
 	g_return_if_fail(dc != NULL);