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-parse.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'wrapper/plugin-parse.c') 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); -- cgit v1.2.3-54-g00ecf