summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2019-02-21 15:20:01 -0500
committerRay Strode <rstrode@redhat.com>2019-02-21 15:21:06 -0500
commitc9e02375dc8f2c636b3698655856c22e9308f60a (patch)
tree127e078984e41a2704158b9131a46f7d958d9c59
parent47d01abe279cf4d5d2f4f3aea934004b87542d69 (diff)
downloadgdm-c9e02375dc8f2c636b3698655856c22e9308f60a.tar.gz
xdmcp-display-factory: don't return value from foreach funcs
The xdmcp code is returning TRUE from its display store foreach functions, which is useless since commit 47d01abe and wrong before that. This commit makes it return void instead.
-rw-r--r--daemon/gdm-xdmcp-display-factory.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/daemon/gdm-xdmcp-display-factory.c b/daemon/gdm-xdmcp-display-factory.c
index 270685d0..220ee3af 100644
--- a/daemon/gdm-xdmcp-display-factory.c
+++ b/daemon/gdm-xdmcp-display-factory.c
@@ -666,7 +666,7 @@ typedef struct {
int count;
} CountDisplayData;
-static gboolean
+static void
count_displays_from_host (const char *id,
GdmDisplay *display,
CountDisplayData *data)
@@ -680,8 +680,6 @@ count_displays_from_host (const char *id,
data->count++;
}
}
-
- return TRUE;
}
static int
@@ -1807,7 +1805,7 @@ gdm_xdmcp_send_got_managed_forward (GdmXdmcpDisplayFactory *factory,
(int)gdm_sockaddr_len (gdm_address_peek_sockaddr_storage (address)));
}
-static gboolean
+static void
count_sessions (const char *id,
GdmDisplay *display,
GdmXdmcpDisplayFactory *factory)
@@ -1823,8 +1821,6 @@ count_sessions (const char *id,
factory->num_pending_sessions++;
}
}
-
- return TRUE;
}
static void