diff options
Diffstat (limited to 'boot/boot_script.c')
-rw-r--r-- | boot/boot_script.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/boot/boot_script.c b/boot/boot_script.c index b773c011..04ede101 100644 --- a/boot/boot_script.c +++ b/boot/boot_script.c @@ -4,13 +4,11 @@ #include <mach.h> #include <stdio.h> +#include <string.h> +#include <stdlib.h> #include "boot_script.h" -extern void *malloc (int size); -extern void free (void *ptr); - - /* This structure describes a symbol. */ struct sym { @@ -68,8 +66,6 @@ static int symtab_alloc = 0; /* Next available slot in `symtab'. */ static int symtab_index = 0; - -void memset (void *str, char c, int size); /* Create a task. */ static int @@ -113,7 +109,7 @@ prompt_resume_task (struct cmd *cmd, int *val) } return 0; -} +} static int read_file (struct cmd *cmd, int *val) @@ -495,7 +491,7 @@ boot_script_parse_line (char *cmdline) } } } - + bad: free_cmd (cmd, 1); |