From 8a6cc1e35f95d58ea72d2b07065d93d586e2d19c Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 7 Jun 2013 14:44:52 +0200 Subject: plugin-feature: Function added to exactly compare plugin features --- src/libstrongswan/plugins/plugin_loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstrongswan/plugins/plugin_loader.c') 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; -- cgit v1.2.3