diff options
author | Benji Dial <benji@benjidial.net> | 2024-07-31 17:16:21 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2024-07-31 17:16:21 -0400 |
commit | e6915fb6dd715e39e37702a6d69c220c0f1798bf (patch) | |
tree | 2e3b59335f70f2725802d254168ceaee85faf891 /applications | |
parent | b1cf9e5dfbc8967bd7cb2a22ec1e5e521f4e0e6e (diff) | |
download | hilbert-os-e6915fb6dd715e39e37702a6d69c220c0f1798bf.tar.gz |
remove argc, argv; arguments will be passed via environment variables
Diffstat (limited to 'applications')
-rw-r--r-- | applications/clock/source/main.cpp | 2 | ||||
-rw-r--r-- | applications/goldman/source/main.cpp | 2 | ||||
-rw-r--r-- | applications/hello/source/main.cpp | 2 | ||||
-rw-r--r-- | applications/init/source/main.cpp | 5 |
4 files changed, 4 insertions, 7 deletions
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<bool>( 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<bool> *font; -int main(int, char **) { +int main() { font = new daguerre::fixed_font<bool>( 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 <euler/syscall.hpp> -//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); |