summaryrefslogtreecommitdiff
path: root/libdiskfs/boot-start.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-25 18:17:33 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-25 18:17:33 +0000
commit8e13e371ec916354c0738bee727816288e61ff5c (patch)
tree0a208f790768fe50a3458bd2939795bb79d56d55 /libdiskfs/boot-start.c
parent5eea731d3b0ead89eb1942daac59f5d4ea0563ae (diff)
Formerly boot-start.c.~34~
Diffstat (limited to 'libdiskfs/boot-start.c')
-rw-r--r--libdiskfs/boot-start.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 4f495470..8eab0957 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -64,8 +64,8 @@ diskfs_start_bootstrap (char **argv)
task_t newt;
error_t err;
char *initname, *initnamebuf;
- char *argv;
- int argvlen;
+ char *exec_argv;
+ int exec_argvlen;
saved_argv = argv;
@@ -144,7 +144,7 @@ diskfs_start_bootstrap (char **argv)
fdarray[1] = con;
fdarray[2] = con;
/* XXX */
- argvlen = asprintf (&argv, "%s%c%s%c", initname, '\0', diskfs_bootflagarg,
+ exec_argvlen = asprintf (&exec_argv, "%s%c%s%c", initname, '\0', diskfs_bootflagarg,
'\0');
task_create (mach_task_self (), 0, &newt);
@@ -156,13 +156,13 @@ diskfs_start_bootstrap (char **argv)
printf (" init");
fflush (stdout);
err = exec_exec (diskfs_exec, startup_pt, MACH_MSG_TYPE_COPY_SEND,
- newt, 0, argv, argvlen, 0, 0,
+ newt, 0, exec_argv, exec_argvlen, 0, 0,
fdarray, MACH_MSG_TYPE_COPY_SEND, 3,
portarray, MACH_MSG_TYPE_COPY_SEND, INIT_PORT_MAX,
/* Supply no intarray, since we have no info for it.
With none supplied, it will use the defaults. */
NULL, 0, 0, 0, 0, 0);
- free (argv);
+ free (exec_argv);
mach_port_deallocate (mach_task_self (), root_pt);
mach_port_deallocate (mach_task_self (), startup_pt);
mach_port_deallocate (mach_task_self (), bootpt);