From c9f997cc91db23e0ba3ac60fa6c37ae066e5265d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sun, 11 Jul 2010 22:37:31 +0000 Subject: strstr(): cosmetics remove extra ';' replace tabs by spaces git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27396 a1c6a512-1295-4272-9138-f99709370657 --- firmware/libc/strstr.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'firmware') 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); } -- cgit v1.2.3