diff src/account.c @ 12420:b7d77321b685

[gaim-migrate @ 14727] gaim_accounts_reorder() should not be using size_t for new_index. I fixed it to use gint, the type of all the g_list functions involved. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 08 Dec 2005 21:50:49 +0000
parents e4a9be312854
children fc28451f5d96
line wrap: on
line diff
--- a/src/account.c	Thu Dec 08 21:08:15 2005 +0000
+++ b/src/account.c	Thu Dec 08 21:50:49 2005 +0000
@@ -2146,13 +2146,13 @@
 }
 
 void
-gaim_accounts_reorder(GaimAccount *account, size_t new_index)
+gaim_accounts_reorder(GaimAccount *account, gint new_index)
 {
-	size_t index;
+	gint index;
 	GList *l;
 
 	g_return_if_fail(account != NULL);
-	g_return_if_fail(new_index >= 0 && new_index <= g_list_length(accounts));
+	g_return_if_fail(new_index <= g_list_length(accounts));
 
 	index = g_list_index(accounts, account);