From 5e229bbf87fbb5a809553526edf0186dd3dd5cf8 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 17 Nov 2009 09:15:09 -0800 Subject: pass startup_tcl to command_init Removes external linkage from helper module, making the startup code a parameter to a new command context's initialization routine. --- src/helper/command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/helper/command.c') diff --git a/src/helper/command.c b/src/helper/command.c index ad09e3de..708a8024 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -766,10 +766,9 @@ COMMAND_HANDLER(handle_fast_command) } -struct command_context* command_init() +struct command_context* command_init(const char *startup_tcl) { struct command_context* context = malloc(sizeof(struct command_context)); - extern const char startup_tcl[]; const char *HostOs; context->mode = COMMAND_EXEC; -- cgit v1.2.3-18-g5258