summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-04-12 15:17:35 +0100
committerPhilip Withnall <withnall@endlessm.com>2019-04-12 15:18:48 +0100
commitec569ff2e2f723164602692d3b695b117f3b3e43 (patch)
treef54f772f4db415cb64d77cb468582b5d8fe1768b
parent61c4531b457feff17bcc87328fb4f3ee603c4386 (diff)
downloadglib-ec569ff2e2f723164602692d3b695b117f3b3e43.tar.gz
gthreadedsocketservice: Tidy up property declarations
This introduces no functional changes. Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--gio/gthreadedsocketservice.c11
1 files 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);