summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-11 22:37:31 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-11 22:37:31 +0000
commitc9f997cc91db23e0ba3ac60fa6c37ae066e5265d (patch)
treebb9e18054b65dadd103a44f20dfc05c3b3f6cfea /firmware
parent8a07e78a06f0c0d25307b72af36bc5d09098956d (diff)
strstr(): cosmetics
remove extra ';' replace tabs by spaces git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27396 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/libc/strstr.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/firmware/libc/strstr.c b/firmware/libc/strstr.c
index ea1fe9eded..d600bbeb64 100644
--- a/firmware/libc/strstr.c
+++ b/firmware/libc/strstr.c
@@ -18,22 +18,22 @@
char *strstr(const char *s1, const char *s2)
{
- register const char *s = s1;
- register const char *p = s2;
+ register const char *s = s1;
+ register const char *p = s2;
- do {
- if (!*p) {
- return (char *) s1;;
- }
- if (*p == *s) {
- ++p;
- ++s;
- } else {
- p = s2;
- if (!*s) {
- return NULL;
- }
- s = ++s1;
- }
- } while (1);
+ do {
+ if (!*p) {
+ return (char *) s1;
+ }
+ if (*p == *s) {
+ ++p;
+ ++s;
+ } else {
+ p = s2;
+ if (!*s) {
+ return NULL;
+ }
+ s = ++s1;
+ }
+ } while (1);
}