diff options
Diffstat (limited to 'firmware/libc/strstr.c')
-rw-r--r-- | firmware/libc/strstr.c | 34 |
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); } |