[gaim-migrate @ 11801]

Wed, 12 Jan 2005 05:22:46 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Wed, 12 Jan 2005 05:22:46 +0000
changeset 10507
57c7cdf1fb73
parent 10506
53fd40650054
child 10508
c606b1eafcf9

[gaim-migrate @ 11801]
this makes more sense to me

src/status.c file | annotate | diff | comparison | revisions
--- a/src/status.c	Wed Jan 12 03:41:29 2005 +0000
+++ b/src/status.c	Wed Jan 12 05:22:46 2005 +0000
@@ -1011,11 +1011,11 @@
 {
 	const GaimValue *value;
 
-	g_return_val_if_fail(status != NULL, FALSE);
-	g_return_val_if_fail(id     != NULL, FALSE);
+	g_return_val_if_fail(status != NULL, 0);
+	g_return_val_if_fail(id     != NULL, 0);
 
 	if ((value = gaim_status_get_attr_value(status, id)) == NULL)
-		return FALSE;
+		return 0;
 
 	g_return_val_if_fail(gaim_value_get_type(value) == GAIM_TYPE_INT, 0);
 
@@ -1027,8 +1027,8 @@
 {
 	const GaimValue *value;
 
-	g_return_val_if_fail(status != NULL, FALSE);
-	g_return_val_if_fail(id     != NULL, FALSE);
+	g_return_val_if_fail(status != NULL, NULL);
+	g_return_val_if_fail(id     != NULL, NULL);
 
 	if ((value = gaim_status_get_attr_value(status, id)) == NULL)
 		return NULL;

mercurial