changeset 20918:8fa6ff212db7

Use glib guint32 type instead of uint32_t. Fixes #3511.
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 13 Oct 2007 17:37:55 +0000
parents aa420b502a6b
children f48bee915ede
files libpurple/protocols/bonjour/buddy.c libpurple/protocols/bonjour/buddy.h
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/buddy.c	Sat Oct 13 17:23:40 2007 +0000
+++ b/libpurple/protocols/bonjour/buddy.c	Sat Oct 13 17:37:55 2007 +0000
@@ -62,9 +62,11 @@
 }
 
 void
-set_bonjour_buddy_value(BonjourBuddy* buddy, const char *record_key, const char *value, uint32_t len){
+set_bonjour_buddy_value(BonjourBuddy* buddy, const char *record_key, const char *value, guint32 len){
 	gchar **fld = NULL;
 
+	g_return_if_fail(record_key != NULL);
+
 	if (!strcmp(record_key, "1st"))
 		fld = &buddy->first;
 	else if(!strcmp(record_key, "email"))
--- a/libpurple/protocols/bonjour/buddy.h	Sat Oct 13 17:23:40 2007 +0000
+++ b/libpurple/protocols/bonjour/buddy.h	Sat Oct 13 17:37:55 2007 +0000
@@ -83,7 +83,7 @@
 /**
  * Sets a value in the BonjourBuddy struct, destroying the old value
  */
-void set_bonjour_buddy_value(BonjourBuddy *buddy, const char *record_key, const char *value, uint32_t len);
+void set_bonjour_buddy_value(BonjourBuddy *buddy, const char *record_key, const char *value, guint32 len);
 
 /**
  * Check if all the compulsory buddy data is present.