diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-08 22:28:11 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-08 22:28:11 +0100 |
commit | 355201f34dd2a88163984c5e4383b4fac6a00339 (patch) | |
tree | 02b57a9071d3e3cde30218607df31b1e16599415 /Kernel | |
parent | ba91ab1038f3cdbea85044c2f1709afd46d1f907 (diff) | |
download | serenity-355201f34dd2a88163984c5e4383b4fac6a00339.zip |
Vector<String>() -> { }
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/init.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp index fb09236341..f36e3baa94 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -40,7 +40,7 @@ static void spawn_stress() for (unsigned i = 0; i < 10000; ++i) { int error; - Process::create_user_process("/bin/true", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty0); + Process::create_user_process("/bin/true", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0); dbgprintf("malloc stats: alloc:%u free:%u eternal:%u !delta:%u\n", sum_alloc, sum_free, kmalloc_sum_eternal, sum_alloc - last_sum_alloc); last_sum_alloc = sum_alloc; sleep(60); @@ -91,11 +91,11 @@ static void init_stage2() environment.append("TERM=ansi"); int error; - Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), move(environment), tty0); + Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0); #ifdef SPAWN_MULTIPLE_SHELLS - Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty1); - Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty2); - Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, Vector<String>(), Vector<String>(), tty3); + Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty1); + Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty2); + Process::create_user_process("/bin/sh", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty3); #endif #ifdef STRESS_TEST_SPAWNING |