From b1e41f328ea871696dae7024a7a1aa6e173f3b26 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 6 Sep 2009 04:32:03 -0400 Subject: it's prollu not worthy of a commit, but I'm going to `hit the hay'. --- wrapper/plugin.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'wrapper/plugin.c') diff --git a/wrapper/plugin.c b/wrapper/plugin.c index c5d8f38..1851941 100644 --- a/wrapper/plugin.c +++ b/wrapper/plugin.c @@ -17,8 +17,8 @@ If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef FILE_plugin.c_SEEN -#define FILE_plugin.c_SEEN +#ifndef FILE_plugin_c_SEEN +#define FILE_plugin_c_SEEN #include #include /* EXIT_FAILURE */ @@ -31,7 +31,7 @@ #include #include -/*#include "rvs.h"*/ +#include "rvs.h" #include "plugin.h" /* finds a plugin with `name'. Start looking at `plugin' (linked list) */ @@ -72,7 +72,7 @@ _plugin_find_command(struct plugin_command *command, char *name) #include "plugin-depend.c" struct plugin * -_plugin_load (char *plug_name, char *plugin_conf) +_plugin_load (const char *plug_name, const char *plugin_conf) { struct plugin *plugin=(struct plugin *)xmalloc(sizeof(*plugin)); char *plug_name2 = (char *)xmalloc(strlen(plug_name)+1); @@ -91,7 +91,7 @@ _plugin_load (char *plug_name, char *plugin_conf) } struct plugin_tree * -load_plugins (char *libexecdir, char *plugin_conf) +load_plugins (const char *libexecdir, const char *plugin_conf) { struct plugin_tree *tree=(struct plugin_tree *)xmalloc(sizeof(*tree)); struct plugin **last=&tree->plugins; @@ -99,7 +99,7 @@ load_plugins (char *libexecdir, char *plugin_conf) struct plugin *plugin; xchdir(libexecdir); - + DIR *cwd; struct dirent *dirent; int serr; @@ -118,8 +118,6 @@ load_plugins (char *libexecdir, char *plugin_conf) } closedir (cwd); - _plugin_depend(tree); - xchdir(".."); return tree; } -- cgit v1.2.3-2-g168b