/soc/2015/koosha/main: 62099a0e9297: Fix compiler warnings regar...
Koosha Khajehmoogahi
koosha at posteo.de
Mon Aug 24 19:57:06 EDT 2015
Changeset: 62099a0e9297ff5a5d9593d88b7bf65fec69d212
Author: Koosha Khajehmoogahi <koosha at posteo.de>
Date: 2015-08-25 01:55 +0200
Branch: default
URL: https://hg.pidgin.im/soc/2015/koosha/main/rev/62099a0e9297
Description:
Fix compiler warnings regarding 'const char' issues
diffstat:
libpurple/protocols/jabber/sm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff --git a/libpurple/protocols/jabber/sm.c b/libpurple/protocols/jabber/sm.c
--- a/libpurple/protocols/jabber/sm.c
+++ b/libpurple/protocols/jabber/sm.c
@@ -111,7 +111,8 @@ void jabber_stream_management_send_ack(J
void jabber_stream_management_send_resume(JabberStream *js)
{
PurpleXmlNode *resume;
- gchar *h, *previd;
+ gchar *h;
+ const char *previd;
resume = purple_xmlnode_new("resume");
h = g_strdup_printf("%d", js->sm->stanzas_recvd);
@@ -123,7 +124,6 @@ void jabber_stream_management_send_resum
return;
purple_xmlnode_set_attrib(resume, "previd", previd);
- g_free(previd);
purple_xmlnode_set_namespace(resume, NS_XMPP_SM);
purple_debug_info("jabber", "Sending <resume/> packet in order to resume the stream.\n");
@@ -222,7 +222,7 @@ static void remove_old_packets_from_buff
void jabber_stream_management_recv_ack(JabberStream *js, PurpleXmlNode *packet)
{
- char *h;
+ const char *h;
guint32 h_val;
h = purple_xmlnode_get_attrib(packet, "h");
@@ -233,7 +233,7 @@ void jabber_stream_management_recv_ack(J
void jabber_stream_management_handle_resume(JabberStream *js, PurpleXmlNode *packet)
{
- char *h, *previd;
+ const char *h, *previd;
guint32 h_val, previd_val;
h = purple_xmlnode_get_attrib(packet, "h");
More information about the Commits
mailing list