From 8da1088e9b22da811cce63233f324e441c7a57e2 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 18 Feb 2020 12:08:42 +0000 Subject: [PATCH] user-selector: Fix some const-to-non-const cast warnings Signed-off-by: Philip Withnall --- malcontent-control/user-selector.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/malcontent-control/user-selector.c b/malcontent-control/user-selector.c index 8d7d80b..7f4ce03 100644 --- a/malcontent-control/user-selector.c +++ b/malcontent-control/user-selector.c @@ -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);