[gdm/wip/foreach-fixes: 4/4] manager: don't return value from listify_display_ids



commit a964604851c6c2dbba44e2571c8655fb2343e084
Author: Ray Strode <rstrode redhat com>
Date:   Thu Feb 21 15:20:01 2019 -0500

    manager: don't return value from listify_display_ids
    
    The manager code is returning FALSE from its
    listify_display_ids foreach function, which is useless
    since commit 47d01abe.
    
    This commit makes it return void instead.

 daemon/gdm-manager.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 2dea45e5..980aa62d 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -2424,15 +2424,12 @@ gdm_manager_error_quark (void)
         return ret;
 }
 
-static gboolean
+static void
 listify_display_ids (const char *id,
                      GdmDisplay *display,
                      GPtrArray **array)
 {
         g_ptr_array_add (*array, g_strdup (id));
-
-        /* return FALSE to continue */
-        return FALSE;
 }
 
 /*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]