summaryrefslogtreecommitdiff
path: root/src/nm-session-monitor.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-10-13 11:51:18 +0200
committerThomas Haller <thaller@redhat.com>2017-10-13 12:47:55 +0200
commit4a2798434ef162b31a129cb6a857c950ec992f3e (patch)
tree38f6f0d3ca22657ae0bac1afa3c850f33516b001 /src/nm-session-monitor.c
parentfb6fecc036f466f569a7d05ed0d499164e032f15 (diff)
core: introduce NM_HASH_INIT() to initialize hash seed
Introduce a NM_HASH_INIT() function. It makes the places where we initialize a hash with a certain seed visually clear. Also, move them from "shared/nm-utils/nm-shared-utils.h" to "shared/nm-utils/nm-macros-internal.h". We might want to have NM_HASH_INIT() non-inline (hence, define it in the source file).
Diffstat (limited to 'src/nm-session-monitor.c')
-rw-r--r--src/nm-session-monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nm-session-monitor.c b/src/nm-session-monitor.c
index 151deec899..20781bd45d 100644
--- a/src/nm-session-monitor.c
+++ b/src/nm-session-monitor.c
@@ -260,9 +260,9 @@ ck_init (NMSessionMonitor *monitor)
if ((monitor->ck.monitor = g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, &error))) {
monitor->ck.cache = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_free);
g_signal_connect (monitor->ck.monitor,
- "changed",
- G_CALLBACK (ck_changed),
- monitor);
+ "changed",
+ G_CALLBACK (ck_changed),
+ monitor);
} else {
_LOGE ("error monitoring " CKDB_PATH ": %s", error->message);
g_clear_error (&error);