summaryrefslogtreecommitdiff
path: root/wrapper/plugin.c
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-09-06 04:32:03 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:14 -0600
commitb1e41f328ea871696dae7024a7a1aa6e173f3b26 (patch)
tree2a98eaec8e76ff3123bad63bb650036fae1b2eff /wrapper/plugin.c
parentea8a13dfa2a25f52cc245a8992fbff5d1e41106d (diff)
it's prollu not worthy of a commit, but I'm going to `hit the hay'.
Diffstat (limited to 'wrapper/plugin.c')
-rw-r--r--wrapper/plugin.c14
1 files changed, 6 insertions, 8 deletions
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 <stdio.h>
#include <stdlib.h> /* EXIT_FAILURE */
@@ -31,7 +31,7 @@
#include <dirent.h>
#include <sys/stat.h>
-/*#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;
}