summaryrefslogtreecommitdiff
path: root/wrapper/plugin-find.h
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-09-12 22:32:44 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:15 -0600
commitd9c1caf91aa18dfe383a678f618ca644cbba01ef (patch)
treebc13f438858e7fbe8fd4dd264c7265b1095e4fe4 /wrapper/plugin-find.h
parent069d217aaa49e9dc285a264d2dce7eeb554a84e2 (diff)
this doesn't work/run, but it seems like /progress/
I'm beginning to get depressed about this :|
Diffstat (limited to 'wrapper/plugin-find.h')
-rw-r--r--wrapper/plugin-find.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/wrapper/plugin-find.h b/wrapper/plugin-find.h
index afd2e2c..9444f55 100644
--- a/wrapper/plugin-find.h
+++ b/wrapper/plugin-find.h
@@ -84,18 +84,20 @@ plugin_find_command(struct plugin *plugin, char *name)
struct plugin_command_list *
plugin_find_commands(struct plugin *plugin, char *name)
{
- struct plugin_command_list *command=xmalloc( sizeof *command );
- command->command=plugin_find_command(plugin,name);
if (plugin==NULL)
- command->next=NULL;
- else
+ return NULL;
+ else {
+ struct plugin_command_list *command;
+ command=xmalloc( sizeof *command );
+ command->command=plugin_find_command(plugin,name);
command->next=plugin_find_commands(plugin->next,name);
- return command;
+ return command;
+ }
}
#ifdef DEBUG
void
-plugin_print_command_list(struct command_list *list, ind)
+plugin_print_command_list(struct plugin_command_list *list, int ind)
{
}