remove trailing whitespace
This commit is contained in:
@@ -63,7 +63,7 @@ static HEIMDAL_MUTEX plugin_mutex = HEIMDAL_MUTEX_INITIALIZER;
|
||||
static struct plugin *registered = NULL;
|
||||
static int plugins_needs_scan = 1;
|
||||
|
||||
static const char *sysplugin_dirs[] = {
|
||||
static const char *sysplugin_dirs[] = {
|
||||
LIBDIR "/plugin/krb5",
|
||||
#ifdef __APPLE__
|
||||
"/System/Library/KerberosPlugins/KerberosFrameworkPlugins",
|
||||
@@ -305,7 +305,7 @@ static krb5_error_code
|
||||
add_symbol(krb5_context context, struct krb5_plugin **list, void *symbol)
|
||||
{
|
||||
struct krb5_plugin *e;
|
||||
|
||||
|
||||
e = calloc(1, sizeof(*e));
|
||||
if (e == NULL) {
|
||||
krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
|
||||
@@ -329,7 +329,7 @@ _krb5_plugin_find(krb5_context context,
|
||||
*list = NULL;
|
||||
|
||||
HEIMDAL_MUTEX_lock(&plugin_mutex);
|
||||
|
||||
|
||||
load_plugins(context);
|
||||
|
||||
for (ret = 0, e = registered; e != NULL; e = e->next) {
|
||||
@@ -379,7 +379,7 @@ _krb5_plugin_free(struct krb5_plugin *list)
|
||||
/*
|
||||
* module - dict of {
|
||||
* ModuleName = [
|
||||
* plugin = object{
|
||||
* plugin = object{
|
||||
* array = { ptr, ctx }
|
||||
* }
|
||||
* ]
|
||||
@@ -556,7 +556,7 @@ search_modules(void *ctx, heim_object_t key, heim_object_t value)
|
||||
return;
|
||||
|
||||
pl = heim_alloc(sizeof(*pl), "struct-plug", plug_free);
|
||||
|
||||
|
||||
cpm = pl->dataptr = dlsym(p->dsohandle, s->name);
|
||||
if (cpm) {
|
||||
int ret;
|
||||
@@ -569,10 +569,10 @@ search_modules(void *ctx, heim_object_t key, heim_object_t value)
|
||||
} else {
|
||||
cpm = pl->dataptr;
|
||||
}
|
||||
|
||||
|
||||
if (cpm && cpm->version >= s->min_version)
|
||||
heim_array_append_value(s->result, pl);
|
||||
|
||||
|
||||
heim_release(pl);
|
||||
}
|
||||
|
||||
@@ -619,11 +619,11 @@ _krb5_plugin_run_f(krb5_context context,
|
||||
s.userctx = userctx;
|
||||
|
||||
heim_dict_iterate_f(dict, search_modules, &s);
|
||||
|
||||
|
||||
heim_release(dict);
|
||||
|
||||
|
||||
HEIMDAL_MUTEX_unlock(&plugin_mutex);
|
||||
|
||||
|
||||
s.ret = KRB5_PLUGIN_NO_HANDLE;
|
||||
|
||||
heim_array_iterate_f(s.result, eval_results, &s);
|
||||
|
Reference in New Issue
Block a user