From bb956ce2ea0ae817c441113375b65f0ddb5ca231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 2 Jul 2008 22:03:04 +0000 Subject: [PATCH] * Fixed coding style. * Since there is no "Haiku license", I replaced that with a reference to the MIT license as usual. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26236 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/string/strlwr.c | 11 ++++++----- src/system/libroot/posix/string/strupr.c | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/system/libroot/posix/string/strlwr.c b/src/system/libroot/posix/string/strlwr.c index c6369d531e..16b20b05e1 100644 --- a/src/system/libroot/posix/string/strlwr.c +++ b/src/system/libroot/posix/string/strlwr.c @@ -1,7 +1,7 @@ /* -** Copyright 2008, Mika Lindqvist. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2008, Mika Lindqvist. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include #include @@ -10,10 +10,11 @@ char * strlwr(char *str) { char *c = str; - while(*c) { + while (*c) { *c = tolower(*c); c++; } - return(str); + + return str; } diff --git a/src/system/libroot/posix/string/strupr.c b/src/system/libroot/posix/string/strupr.c index 1803b7b0a3..97388d0801 100644 --- a/src/system/libroot/posix/string/strupr.c +++ b/src/system/libroot/posix/string/strupr.c @@ -1,7 +1,7 @@ /* -** Copyright 2008, Mika Lindqvist. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ + * Copyright 2008, Mika Lindqvist. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include #include @@ -10,10 +10,11 @@ char * strupr(char *str) { char *c = str; - while(*c) { + while (*c) { *c = toupper(*c); c++; } - return(str); + + return str; }