user-selector: Fix some const-to-non-const cast warnings

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-02-18 12:08:42 +00:00
parent cb27d75645
commit 8da1088e9b
1 changed files with 3 additions and 3 deletions

View File

@ -309,8 +309,8 @@ sort_users (gconstpointer a,
ActUser *ua, *ub;
gint result;
ua = ACT_USER (a);
ub = ACT_USER (b);
ua = ACT_USER ((gpointer) a);
ub = ACT_USER ((gpointer) b);
/* Make sure the current user is shown first */
if (act_user_get_uid (ua) == getuid ())
@ -344,7 +344,7 @@ user_compare (gconstpointer i,
gint result;
item = (MctCarouselItem *) i;
user = ACT_USER (u);
user = ACT_USER ((gpointer) u);
uid_a = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (item), "uid"));
uid_b = act_user_get_uid (user);