strstr(): cosmetics

remove extra ';'
replace tabs by spaces

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27396 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-07-11 22:37:31 +00:00
parent 8a07e78a06
commit c9f997cc91
1 changed files with 17 additions and 17 deletions

View File

@ -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);
}