diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-06-28 10:44:15 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-06-28 10:44:15 +0200 |
commit | b18a53171537f81e8dc4a094a5368bdd9d3c7e4f (patch) | |
tree | 27086abd13eb58d70a192321904d114957e0c56a /src/libstrongswan/plugins/plugin_loader.c | |
parent | 9da142b4dc151d4d9c1db2fb55b3a5203c1f1c8c (diff) | |
download | strongswan-b18a53171537f81e8dc4a094a5368bdd9d3c7e4f.tar.bz2 strongswan-b18a53171537f81e8dc4a094a5368bdd9d3c7e4f.tar.xz |
plugin-loader: Removed unused path argument of load() method
Multiple additional search paths can be added with the add_path()
method.
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r-- | src/libstrongswan/plugins/plugin_loader.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c index 025e97adb..5ed0a9b0f 100644 --- a/src/libstrongswan/plugins/plugin_loader.c +++ b/src/libstrongswan/plugins/plugin_loader.c @@ -937,17 +937,14 @@ static bool find_plugin(char *path, char *name, char *buf, char **file) } METHOD(plugin_loader_t, load_plugins, bool, - private_plugin_loader_t *this, char *default_path, char *list) + private_plugin_loader_t *this, char *list) { enumerator_t *enumerator; - char *token; + char *default_path = NULL, *token; bool critical_failed = FALSE; #ifdef PLUGINDIR - if (default_path == NULL) - { - default_path = PLUGINDIR; - } + default_path = PLUGINDIR; #endif /* PLUGINDIR */ enumerator = enumerator_create_token(list, " ", " "); |