[glib: 1/8] gthreadedsocketservice: Tidy up property declarations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/8] gthreadedsocketservice: Tidy up property declarations
- Date: Mon, 15 Apr 2019 09:11:36 +0000 (UTC)
commit ec569ff2e2f723164602692d3b695b117f3b3e43
Author: Philip Withnall <withnall endlessm com>
Date: Fri Apr 12 15:17:35 2019 +0100
gthreadedsocketservice: Tidy up property declarations
This introduces no functional changes.
Signed-off-by: Philip Withnall <withnall endlessm com>
gio/gthreadedsocketservice.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gio/gthreadedsocketservice.c b/gio/gthreadedsocketservice.c
index e0c111c10..7644d942c 100644
--- a/gio/gthreadedsocketservice.c
+++ b/gio/gthreadedsocketservice.c
@@ -62,11 +62,10 @@ G_DEFINE_TYPE_WITH_PRIVATE (GThreadedSocketService,
g_threaded_socket_service,
G_TYPE_SOCKET_SERVICE)
-enum
+typedef enum
{
- PROP_0,
- PROP_MAX_THREADS
-};
+ PROP_MAX_THREADS = 1,
+} GThreadedSocketServiceProperty;
G_LOCK_DEFINE_STATIC(job_count);
@@ -173,7 +172,7 @@ g_threaded_socket_service_get_property (GObject *object,
{
GThreadedSocketService *service = G_THREADED_SOCKET_SERVICE (object);
- switch (prop_id)
+ switch ((GThreadedSocketServiceProperty) prop_id)
{
case PROP_MAX_THREADS:
g_value_set_int (value, service->priv->max_threads);
@@ -192,7 +191,7 @@ g_threaded_socket_service_set_property (GObject *object,
{
GThreadedSocketService *service = G_THREADED_SOCKET_SERVICE (object);
- switch (prop_id)
+ switch ((GThreadedSocketServiceProperty) prop_id)
{
case PROP_MAX_THREADS:
service->priv->max_threads = g_value_get_int (value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]