summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-03-12 11:11:54 -0400
committerDan Winship <danw@gnome.org>2013-04-03 10:23:48 -0400
commitb3e8361f0fba2a9ade02a8a1aeac022113d64379 (patch)
tree447ca1047bb2cd5cde525c94e0d82b70d7f2e2df /src/main.c
parent26de9db14ba9b6bf988e37be672996fbe0a3a63b (diff)
downloadNetworkManager-b3e8361f0fba2a9ade02a8a1aeac022113d64379.tar.gz
settings: don't pass config_path to NMSettings and settings plugins
They can just call nm_config_get() now to get the config, and nm_config_get_path() to get its path.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 579679d5ab..d41a41b24d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -494,9 +494,7 @@ main (int argc, char *argv[])
dns_mgr = nm_dns_manager_get ();
g_assert (dns_mgr != NULL);
- settings = nm_settings_new (nm_config_get_path (config),
- nm_config_get_plugins (config),
- &error);
+ settings = nm_settings_new (&error);
if (!settings) {
nm_log_err (LOGD_CORE, "failed to initialize settings storage: %s",
error && error->message ? error->message : "(unknown)");