diff --git a/libc-test/src/functional/exit_constructor.c b/libc-test/src/functional/exit_constructor.c index 5fedfa32e8dab4864b9133abcd80d4286cb667ee..0f96a4ee49623f5a0fd5a4f49aecc9afc3674aa7 100644 --- a/libc-test/src/functional/exit_constructor.c +++ b/libc-test/src/functional/exit_constructor.c @@ -1,11 +1,12 @@ #include #include "test.h" -__attribute__((constructor)) -void B_ctor() { - exit(t_status); -} +__attribute__((constructor)) +void Ctor() +{ + exit(t_status); -int main() { - return t_status; +int main() +{ + return t_status; } \ No newline at end of file diff --git a/porting/linux/user/src/string/strcspn.c b/porting/linux/user/src/string/strcspn.c index 30d23299d4ba44bee661aebeae59aac627462574..403b0f389625e8d42627c64d239d51ba0979c32e 100644 --- a/porting/linux/user/src/string/strcspn.c +++ b/porting/linux/user/src/string/strcspn.c @@ -1,19 +1,20 @@ -// from openbsd, will be rectified later +// from openbsd, will be rectified later #include size_t strcspn(const char *string1, const char *string2) { - const char *a, *p; - char sc, c; - - for (a = string1;;) { - sc = *a++; - p = string2; - do { - if ((c = *p++) == sc) - return (a - 1 - string1); - } while (c != 0); - } + const char *a, *p; + char sc, c; + + for (a = string1;;) { + sc = *a++; + p = string2; + do { + if ((c = *p++) == sc) { + return (a - 1 - string1); +} + } while (c != 0); + } /* NOTREACHED */ } \ No newline at end of file