disapproval of revision 'c2be20e609c88236b54de74bbbcc085c85baa2b7' soc.2007.finchfeat

Tue, 19 Jun 2007 19:33:16 +0000

author
Eric Polino <aluink@pidgin.im>
date
Tue, 19 Jun 2007 19:33:16 +0000
branch
soc.2007.finchfeat
changeset 18157
0a76fca9083e
parent 18156
c2be20e609c8
child 18161
4ec9c0f7daa6

disapproval of revision 'c2be20e609c88236b54de74bbbcc085c85baa2b7'

finch/gntrequest.c file | annotate | diff | comparison | revisions
--- a/finch/gntrequest.c	Tue Jun 19 14:32:08 2007 +0000
+++ b/finch/gntrequest.c	Tue Jun 19 19:33:16 2007 +0000
@@ -674,13 +674,9 @@
 				case PURPLE_PREF_INT:
 				{
 					long int tmp;
-					if (type == PURPLE_REQUEST_FIELD_LIST){ /* Lists always return string */
+					if (type == PURPLE_REQUEST_FIELD_LIST) /* Lists always return string */
 						sscanf(val, "%ld", &tmp);
-						purple_prefs_set_int(id, (gint)tmp);
-					}
-					else{
-						purple_prefs_set_int(id,GPOINTER_TO_INT(val));
-					}
+					purple_prefs_set_int(id, (gint)tmp);
 					break;
 				}
 				case PURPLE_PREF_BOOLEAN:

mercurial