summaryrefslogtreecommitdiff
path: root/wrapper/plugin-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'wrapper/plugin-parse.c')
-rw-r--r--wrapper/plugin-parse.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/wrapper/plugin-parse.c b/wrapper/plugin-parse.c
index 3be7543..7fd04bb 100644
--- a/wrapper/plugin-parse.c
+++ b/wrapper/plugin-parse.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-parse.c_SEEN
-#define FILE_plugin-parse.c_SEEN
+#ifndef FILE_plugin_parse_c_SEEN
+#define FILE_plugin_parse_c_SEEN
void _plugin_parse_comment (FILE *file)
{
@@ -80,16 +80,7 @@ char *_plugin_parse_depend (FILE *file)
struct plugin_command *_plugin_parse (struct plugin *plugin, FILE *file)
{
- struct plugin_command *command;
- command=(struct plugin_command *)xmalloc(sizeof(*command));
-
- command->plugin=plugin;
- command->p_next=NULL;
-
- command->depend=NULL;
- command->depends=NULL;
- command->child=NULL;
- command->d_next=NULL;
+ struct plugin_command *command=mkcommand();
size_t nbytes = 10;
char *string = (char *)xmalloc(nbytes);