From b3e8361f0fba2a9ade02a8a1aeac022113d64379 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 12 Mar 2013 11:11:54 -0400 Subject: 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. --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.c') 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)"); -- cgit v1.2.1