diff options
author | Roy Marples <roy@marples.name> | 2007-04-10 11:24:58 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-10 11:24:58 +0000 |
commit | d3db9e9910ef0a472feb27cf4a9ace78e431ddd9 (patch) | |
tree | 7e01917c209258b2f459f63ba42558c3beffb2f5 /src/rc-plugin.c | |
parent | 662e308d86d63750fc1d939e68c2b5ee88fea593 (diff) |
Fix indentation
Diffstat (limited to 'src/rc-plugin.c')
-rw-r--r-- | src/rc-plugin.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/rc-plugin.c b/src/rc-plugin.c index b742eadd..f7cd3686 100644 --- a/src/rc-plugin.c +++ b/src/rc-plugin.c @@ -50,11 +50,11 @@ void rc_plugin_load (void) int len; if (! h) - { - eerror ("dlopen `%s': %s", p, dlerror ()); - free (p); - continue; - } + { + eerror ("dlopen `%s': %s", p, dlerror ()); + free (p); + continue; + } func = file; file = strsep (&func, "."); @@ -64,25 +64,25 @@ void rc_plugin_load (void) f = dlsym (h, func); if (! f) - { - eerror ("`%s' does not expose the symbol `%s'", p, func); - dlclose (h); - } + { + eerror ("`%s' does not expose the symbol `%s'", p, func); + dlclose (h); + } else - { - if (plugin) - { - plugin->next = rc_xmalloc (sizeof (plugin_t)); - plugin = plugin->next; - } - else - plugin = plugins = rc_xmalloc (sizeof (plugin_t)); - - memset (plugin, 0, sizeof (plugin_t)); - plugin->name = strdup (file); - plugin->handle = h; - plugin->hook = f; - } + { + if (plugin) + { + plugin->next = rc_xmalloc (sizeof (plugin_t)); + plugin = plugin->next; + } + else + plugin = plugins = rc_xmalloc (sizeof (plugin_t)); + + memset (plugin, 0, sizeof (plugin_t)); + plugin->name = strdup (file); + plugin->handle = h; + plugin->hook = f; + } free (func); free (p); @@ -98,7 +98,7 @@ void rc_plugin_run (rc_hook_t hook, const char *value) while (plugin) { if (plugin->hook) - plugin->hook (hook, value); + plugin->hook (hook, value); plugin = plugin->next; } |