summaryrefslogtreecommitdiff
path: root/wrapper/plugin-depend.c
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugin-depend.c')
-rw-r--r--wrapper/plugin-depend.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/wrapper/plugin-depend.c b/wrapper/plugin-depend.c
index 3dfbf1b..f0e62d7 100644
--- a/wrapper/plugin-depend.c
+++ b/wrapper/plugin-depend.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-depend.c_SEEN
-#define FILE_plugin-depend.c_SEEN
+#ifndef FILE_plugin_depend_c_SEEN
+#define FILE_plugin_depend_c_SEEN
/* translates a string in syntax `plugin/command' into a pointer to the commnad
DON'T plan on using the string again, it will be mutilated!
@@ -85,20 +85,9 @@ _plugin_depend_plugin(struct plugin *plugin, struct plugin_tree *tree)
void
_plugin_depend(struct plugin_tree *tree)
{
- /* add a blank `root' command for those that don't have depends */
- struct plugin_command *command;
- command=(struct plugin_command *)xmalloc(sizeof(*command));
- command->name=NULL;
- command->plugin=NULL;
- command->p_next=NULL;
- command->depend=NULL;
- command->depends=NULL;
- command->child=NULL;/*<--only variable of any value */
- command->d_next=NULL;
-
+ struct plugin_command *command=mkcommand();
tree->depends=command;
- /* parse all commands */
_plugin_depend_plugin(tree->plugins,tree);
}