From: Alan Cox Date: Sat, 29 Nov 2014 14:25:44 +0000 (+0000) Subject: start: remove bogus copy of const object - make it static const X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2071739e6b781ef6d135ed8b1a356f8b727df65a;p=FUZIX.git start: remove bogus copy of const object - make it static const --- diff --git a/Kernel/start.c b/Kernel/start.c index de20291e..c2154e96 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -47,7 +47,7 @@ void create_init(void) uint8_t *j; /* userspace: PROGLOAD + 0 1 2 3 4 5 6 7 8 9 A B C */ - const char arg[] = + static const char arg[] = { '/', 'i', 'n', 'i', 't', 0, 0, 1, 1, 0, 0, 0, 0 }; init_process = ptab_alloc(); @@ -64,7 +64,7 @@ void create_init(void) } /* Poke the execve arguments into user data space so _execve() can read them back */ uput(arg, (void *)PROGLOAD, sizeof(arg)); - /* Poke in arv[0] - FIXME: Endianisms... */ + /* Poke in argv[0] - FIXME: Endianisms... */ uputw(PROGLOAD+1 , (void *)(PROGLOAD + 7)); /* Set up things to look like the process is calling _execve() */