summaryrefslogtreecommitdiff
path: root/src/nm-dispatcher
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-10-08 09:20:57 +0200
committerThomas Haller <thaller@redhat.com>2021-10-08 09:20:58 +0200
commitdae5e0117173df8857b4a6f85edd18a16b5bcb9c (patch)
treeec68e06220a8268d0aaa131ffe92c8bccf9d66a2 /src/nm-dispatcher
parent098a963e42a69b544a8505317f28a7ed1e616780 (diff)
downloadNetworkManager-dae5e0117173df8857b4a6f85edd18a16b5bcb9c.tar.gz
glib-aux: rename nm_g_timeout_add_source_seconds() to nm_g_timeout_add_seconds_source()
There is g_idle_add(), g_timeout_add() and g_timeout_add_seconds(). We have alternatives nm_g_idle_add_source() and nm_g_timeout_add_source(). I find the previous name nm_g_timeout_add_source_seconds() inconsistent with the pattern, and get it always wrong on first try. Rename.
Diffstat (limited to 'src/nm-dispatcher')
-rw-r--r--src/nm-dispatcher/nm-dispatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-dispatcher/nm-dispatcher.c b/src/nm-dispatcher/nm-dispatcher.c
index b175d8eed3..b29f5acaca 100644
--- a/src/nm-dispatcher/nm-dispatcher.c
+++ b/src/nm-dispatcher/nm-dispatcher.c
@@ -553,7 +553,7 @@ script_dispatch(ScriptInfo *script)
script->watch_source = nm_g_child_watch_add_source(script->pid, script_watch_cb, script);
script->timeout_source =
- nm_g_timeout_add_source_seconds(SCRIPT_TIMEOUT, script_timeout_cb, script);
+ nm_g_timeout_add_seconds_source(SCRIPT_TIMEOUT, script_timeout_cb, script);
if (!script->wait)
request->num_scripts_nowait++;
return TRUE;