From faffc442b9d717b3d3c1ac3d2f87fe2be7df45df Mon Sep 17 00:00:00 2001 From: "gary.li.wenchao.4" Date: Sat, 20 Feb 2010 09:38:40 +0000 Subject: [PATCH] fixed compiling error for GCC git-svn-id: https://rt-thread.googlecode.com/svn/trunk@428 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libc/minilibc/string.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libc/minilibc/string.c b/libc/minilibc/string.c index 092fbfb7ad..7edba9fc80 100644 --- a/libc/minilibc/string.c +++ b/libc/minilibc/string.c @@ -41,13 +41,6 @@ int strcmp (const char *s1, const char *s2) return (*s1 - *s2); } -int strcmp (const char *s1, const char *s2) -{ - while (*s1 && *s1 == *s2) - s1++, s2++; - return (*s1 - *s2); -} - char* strcat(register char* s,register const char* t) { char *dest = s;