Mercurial > pidgin
diff src/protocols/msn/user.c @ 10044:86a6d78b070b
[gaim-migrate @ 11003]
this is the msn buddy list sync code from the 1.0.0 tree, also from shx. in
this patch, i changed one instance of "b" to "buddy" to make it compile.
this introduces code to ask the user about discrepances between the local
and server lists on msn.
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Sun, 19 Sep 2004 03:02:28 +0000 |
| parents | 65b3156f9f48 |
| children | 088633feb846 |
line wrap: on
line diff
--- a/src/protocols/msn/user.c Sun Sep 19 02:53:00 2004 +0000 +++ b/src/protocols/msn/user.c Sun Sep 19 03:02:28 2004 +0000 @@ -210,7 +210,7 @@ const char *group_name; g_return_if_fail(user != NULL); - g_return_if_fail(id > -1); + g_return_if_fail(id >= 0); user->group_ids = g_list_append(user->group_ids, GINT_TO_POINTER(id)); @@ -238,7 +238,7 @@ msn_user_remove_group_id(MsnUser *user, int id) { g_return_if_fail(user != NULL); - g_return_if_fail(id > -1); + g_return_if_fail(id >= 0); user->group_ids = g_list_remove(user->group_ids, GINT_TO_POINTER(id)); }
