From dc9f9f55cb6b38b87d8c228ae9abb4b53ebfb25c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 15 Mar 2021 22:54:54 +0100 Subject: System hardening and errno impl --- apps/init.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'apps/init.c') diff --git a/apps/init.c b/apps/init.c index c59e3bf..5a233c1 100644 --- a/apps/init.c +++ b/apps/init.c @@ -1,9 +1,7 @@ // MIT License, Copyright (c) 2020 Marvin Borner +#include #include -#include -#include -#include #include #include @@ -13,8 +11,8 @@ int main(int argc, char **argv) UNUSED(argc); UNUSED(argv); - int wm = exec("/bin/wm", "wm", NULL); - int test = exec("/bin/window", "test", NULL); + assert(exec("/bin/wm", "wm", NULL) == 0); + /* assert(exec("/bin/window", "test", NULL) == 0); */ - return wm + test; + return 0; } -- cgit v1.2.3