aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/plugin_loader.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-06-07 14:44:52 +0200
committerTobias Brunner <tobias@strongswan.org>2013-06-11 11:18:17 +0200
commit8a6cc1e35f95d58ea72d2b07065d93d586e2d19c (patch)
tree46cae882041f2d5cf3ffea96b60f02338834822a /src/libstrongswan/plugins/plugin_loader.c
parent270e425b2460989bdd9f9e7580ff98bc4d7861f6 (diff)
downloadstrongswan-8a6cc1e35f95d58ea72d2b07065d93d586e2d19c.tar.bz2
strongswan-8a6cc1e35f95d58ea72d2b07065d93d586e2d19c.tar.xz
plugin-feature: Function added to exactly compare plugin features
Diffstat (limited to 'src/libstrongswan/plugins/plugin_loader.c')
-rw-r--r--src/libstrongswan/plugins/plugin_loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/plugin_loader.c b/src/libstrongswan/plugins/plugin_loader.c
index cea219e92..109f78a86 100644
--- a/src/libstrongswan/plugins/plugin_loader.c
+++ b/src/libstrongswan/plugins/plugin_loader.c
@@ -179,7 +179,7 @@ static plugin_t *static_features_create(const char *name,
/**
* Compare function for hashtable of loaded features.
*/
-static bool plugin_feature_equals(plugin_feature_t *a, plugin_feature_t *b)
+static bool plugin_feature_equals_ptr(plugin_feature_t *a, plugin_feature_t *b)
{
return a == b;
}
@@ -850,7 +850,7 @@ plugin_loader_t *plugin_loader_create()
.plugins = linked_list_create(),
.loaded_features = hashtable_create(
(hashtable_hash_t)plugin_feature_hash,
- (hashtable_equals_t)plugin_feature_equals, 64),
+ (hashtable_equals_t)plugin_feature_equals_ptr, 64),
);
return &this->public;