diff --git a/libc-test/src/functional/exit_constructor.c b/libc-test/src/functional/exit_constructor.c index 5fedfa32e8dab4864b9133abcd80d4286cb667ee..336a9d063402dbfc779b99aeef46b6f866a24e12 100644 --- a/libc-test/src/functional/exit_constructor.c +++ b/libc-test/src/functional/exit_constructor.c @@ -1,11 +1,13 @@ #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..9065c30d8525d8b460934bbc98c5320311a1cf19 100644 --- a/porting/linux/user/src/string/strcspn.c +++ b/porting/linux/user/src/string/strcspn.c @@ -1,4 +1,4 @@ -// from openbsd, will be rectified later +// from openbsd, will be rectified later #include @@ -11,8 +11,9 @@ size_t strcspn(const char *string1, const char *string2) sc = *a++; p = string2; do { - if ((c = *p++) == sc) + if ((c = *p++) == sc) { return (a - 1 - string1); + } } while (c != 0); } /* NOTREACHED */