summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-09-04 18:25:06 +0000
committerRoland McGrath <roland@gnu.org>1998-09-04 18:25:06 +0000
commit3871333497e73d6ccbae13d547a2f2284e2cd122 (patch)
tree49d3bd77a37f506cc31521e0d9fdea0b12bf639e
parentfdd42957b5452ce8cd0aaaa3223509b00a967614 (diff)
1998-09-04 Roland McGrath <roland@baalperazim.frob.com>
* boot_script.c: Include <string.h> instead of declaring memset here. Include <stdlib.h> instead of declaring malloc, free here.
-rw-r--r--boot/boot_script.c12
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);