simplify if statement

This commit is contained in:
Jōshin 2023-12-30 22:45:37 -05:00
parent 89b774fb3f
commit c3a0808999
No known key found for this signature in database

View file

@ -117,10 +117,7 @@ wontreturn textstartup void cosmo(long *sp, struct Syslib *m1, char *exename,
__program_executable_name = exename; __program_executable_name = exename;
program_invocation_name = argv[0]; program_invocation_name = argv[0];
__oldstack = (intptr_t)sp; __oldstack = (intptr_t)sp;
if (os) { if (!(hostos = os)) {
hostos = os;
} else {
/* old/no loader */
if (SupportsFreebsd() && is_freebsd) { if (SupportsFreebsd() && is_freebsd) {
hostos = _HOSTFREEBSD; hostos = _HOSTFREEBSD;
} else if (SupportsXnu() && m1) { } else if (SupportsXnu() && m1) {