From f700ba6668dbdb91a03b2c5aa387eb4cabae8fcd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 21 Aug 2020 20:39:48 +0200 Subject: Some things here and some things there --- apps/init.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'apps/init.c') diff --git a/apps/init.c b/apps/init.c index de87798..64fbde3 100644 --- a/apps/init.c +++ b/apps/init.c @@ -8,11 +8,14 @@ #include #include -void main(struct vbe *vbe) +int main(int argc, char **argv) { - print("Init loaded.\n"); - int a = exec("/wm", vbe); + (void)argc; - if (a) - exit(); + printf("ARGC: %d\n", argc); + printf("ARGV: %x\n", argv); + printf("%s loaded.\n", argv[0]); + + exec("/wm", "wm", argv[1], NULL); + return 0; } -- cgit v1.2.3