[gnome-online-accounts/wip/rishi/identity-kernel-keyring-notification: 6/8] kerberos-identity-manager: Rename two variables for consistency
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/rishi/identity-kernel-keyring-notification: 6/8] kerberos-identity-manager: Rename two variables for consistency
- Date: Sat, 1 Feb 2020 20:47:12 +0000 (UTC)
commit c5f0be36a45747e460b7fdbbb38933eb4f399bb7
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 30 19:04:31 2020 +0100
kerberos-identity-manager: Rename two variables for consistency
This makes the names consistent, and their purpose more obvious.
src/goaidentity/goakerberosidentitymanager.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/goaidentity/goakerberosidentitymanager.c b/src/goaidentity/goakerberosidentitymanager.c
index 0765cb34..678db4c6 100644
--- a/src/goaidentity/goakerberosidentitymanager.c
+++ b/src/goaidentity/goakerberosidentitymanager.c
@@ -46,7 +46,7 @@ struct _GoaKerberosIdentityManager
GThreadPool *thread_pool;
krb5_context kerberos_context;
- GFileMonitor *credentials_cache_monitor;
+ GFileMonitor *credentials_cache_file_monitor;
char *credentials_cache_type;
GMutex scheduler_job_lock;
@@ -55,7 +55,7 @@ struct _GoaKerberosIdentityManager
volatile int pending_refresh_count;
- guint polling_timeout_id;
+ guint credentials_cache_polling_timeout_id;
};
typedef enum
@@ -1432,14 +1432,14 @@ monitor_credentials_cache (GoaKerberosIdentityManager *self,
else
{
g_signal_connect (G_OBJECT (monitor), "changed", G_CALLBACK (credentials_cache_file_monitor_changed),
self);
- self->credentials_cache_monitor = monitor;
+ self->credentials_cache_file_monitor = monitor;
}
if (!can_monitor)
{
- self->polling_timeout_id = g_timeout_add_seconds (FALLBACK_POLLING_INTERVAL,
- (GSourceFunc) credentials_cache_polling_timeout,
- self);
+ self->credentials_cache_polling_timeout_id = g_timeout_add_seconds (FALLBACK_POLLING_INTERVAL,
+ (GSourceFunc)
credentials_cache_polling_timeout,
+ self);
}
krb5_cc_close (self->kerberos_context, default_cache);
@@ -1450,18 +1450,18 @@ monitor_credentials_cache (GoaKerberosIdentityManager *self,
static void
stop_watching_credentials_cache (GoaKerberosIdentityManager *self)
{
- if (self->credentials_cache_monitor != NULL)
+ if (self->credentials_cache_file_monitor != NULL)
{
- if (!g_file_monitor_is_cancelled (self->credentials_cache_monitor))
- g_file_monitor_cancel (self->credentials_cache_monitor);
+ if (!g_file_monitor_is_cancelled (self->credentials_cache_file_monitor))
+ g_file_monitor_cancel (self->credentials_cache_file_monitor);
- g_clear_object (&self->credentials_cache_monitor);
+ g_clear_object (&self->credentials_cache_file_monitor);
}
- if (self->polling_timeout_id != 0)
+ if (self->credentials_cache_polling_timeout_id != 0)
{
- g_source_remove (self->polling_timeout_id);
- self->polling_timeout_id = 0;
+ g_source_remove (self->credentials_cache_polling_timeout_id);
+ self->credentials_cache_polling_timeout_id = 0;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]