diff --git a/src/sys/init/static.c b/src/sys/init/static.c index ee240c4..5196c74 100644 --- a/src/sys/init/static.c +++ b/src/sys/init/static.c @@ -29,24 +29,21 @@ #include -int static_constructors(void) -{ - extern void (* __ctor_list)(); - void (** l_ctor)() = &__ctor_list; - int l_ctorCount = *(int *)l_ctor; +int static_constructors(void) { + extern void (* __ctor_list)(); + void (** l_ctor)() = &__ctor_list; + int l_ctorCount = *(int *)l_ctor; - kprintf("Calling static constructors\n"); + kprintf("Calling static constructors\n"); + l_ctor++; + while(l_ctorCount) { + (*l_ctor)(); + l_ctorCount--; l_ctor++; - while(l_ctorCount) - { - (*l_ctor)(); - l_ctorCount--; - l_ctor++; } - - return 0; -} + return(0x0); + } /*** END