From e6915fb6dd715e39e37702a6d69c220c0f1798bf Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 31 Jul 2024 17:16:21 -0400 Subject: remove argc, argv; arguments will be passed via environment variables --- applications/clock/source/main.cpp | 2 +- applications/goldman/source/main.cpp | 2 +- applications/hello/source/main.cpp | 2 +- applications/init/source/main.cpp | 5 +---- 4 files changed, 4 insertions(+), 7 deletions(-) (limited to 'applications') diff --git a/applications/clock/source/main.cpp b/applications/clock/source/main.cpp index 3a1270d..fde8f33 100644 --- a/applications/clock/source/main.cpp +++ b/applications/clock/source/main.cpp @@ -38,7 +38,7 @@ std::string the_time() { } -int main(int, char **) { +int main() { font = new daguerre::fixed_font( daguerre::try_load_psf("/assets/terminus/10x18-bold.psf").value()); diff --git a/applications/goldman/source/main.cpp b/applications/goldman/source/main.cpp index 475129f..2ade412 100644 --- a/applications/goldman/source/main.cpp +++ b/applications/goldman/source/main.cpp @@ -9,7 +9,7 @@ renderer *r; -int main(int, char **) { +int main() { euler::syscall::listener_handle listener; euler::syscall::create_socket_listener("hilbert.compositor", listener); diff --git a/applications/hello/source/main.cpp b/applications/hello/source/main.cpp index b297721..64f569e 100644 --- a/applications/hello/source/main.cpp +++ b/applications/hello/source/main.cpp @@ -4,7 +4,7 @@ daguerre::fixed_font *font; -int main(int, char **) { +int main() { font = new daguerre::fixed_font( daguerre::try_load_psf("/assets/terminus/10x18-bold.psf").value()); diff --git a/applications/init/source/main.cpp b/applications/init/source/main.cpp index c281bc0..66ad260 100644 --- a/applications/init/source/main.cpp +++ b/applications/init/source/main.cpp @@ -1,9 +1,6 @@ #include -//this does not keep track of the processes or whether they have started -//successfully, nor does it set their argc, argv, stdin, stdout, or stderr. - -int main(int, char **) { +int main() { euler::syscall::process_handle dummy; euler::syscall::start_process("/bin/compositor", {}, {}, dummy); euler::syscall::start_process("/bin/clock", {}, {}, dummy); -- cgit v1.2.3