cpw.darkrain42.xmpp.bosh: a857c057: Rename a few variables

paul at darkrain42.org paul at darkrain42.org
Sat Jan 17 23:56:42 EST 2009


-----------------------------------------------------------------
Revision: a857c0576b3f4a14e1481eb94591a59bd61a4713
Ancestor: b8fdbd255c614e7305f835b843a3414675a86a19
Author: paul at darkrain42.org
Date: 2008-12-17T04:33:00
Branch: im.pidgin.cpw.darkrain42.xmpp.bosh
URL: http://d.pidgin.im/viewmtn/revision/info/a857c0576b3f4a14e1481eb94591a59bd61a4713

Modified files:
        libpurple/protocols/jabber/caps.c

ChangeLog: 

Rename a few variables

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c	c36f46eb22f57f253c118411b10cadaf4b705e9f
+++ libpurple/protocols/jabber/caps.c	8b22d3df09d6ac9532797939296958d5c3cb9bcc
@@ -59,11 +59,11 @@ typedef struct _JabberCapsValue {
 } JabberCapsValue;
 #endif
 
-static guint jabber_caps_hash(gconstpointer key) {
-	const JabberCapsKey *name = key;
-	guint nodehash = g_str_hash(name->node);
-	guint verhash = g_str_hash(name->ver);
-	guint hashhash = g_str_hash(name->hash);
+static guint jabber_caps_hash(gconstpointer data) {
+	const JabberCapsKey *key = data;
+	guint nodehash = g_str_hash(key->node);
+	guint verhash = g_str_hash(key->ver);
+	guint hashhash = g_str_hash(key->hash);
 	return nodehash ^ verhash ^ hashhash;
 }
 
@@ -76,12 +76,12 @@ static gboolean jabber_caps_compare(gcon
 	       strcmp(name1->hash, name2->hash) == 0;
 }
 
-void jabber_caps_destroy_key(gpointer key) {
-	JabberCapsKey *keystruct = key;
-	g_free(keystruct->node);
-	g_free(keystruct->ver);
-	g_free(keystruct->hash);
-	g_free(keystruct);
+void jabber_caps_destroy_key(gpointer data) {
+	JabberCapsKey *key = data;
+	g_free(key->node);
+	g_free(key->ver);
+	g_free(key->hash);
+	g_free(key);
 }
 
 void


More information about the Commits mailing list