From 15b914c8f3e825bafd7d2319b2b95ff04b08d735 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 27 Aug 2014 14:13:09 -0700 Subject: [PATCH] Fix strlen function type for mips. Clang complains about incompatible-library-redeclaration. BUG: 17302369 Change-Id: I3ae36f24846408c6464b84b5bddb1747e1e4a971 --- libc/arch-mips/string/mips_strlen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libc/arch-mips/string/mips_strlen.c b/libc/arch-mips/string/mips_strlen.c index 9fb7e6a85..45fc4b4bd 100644 --- a/libc/arch-mips/string/mips_strlen.c +++ b/libc/arch-mips/string/mips_strlen.c @@ -30,6 +30,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include "mips-string-ops.h" #define do_strlen_word(__av) {\ @@ -47,8 +48,8 @@ #define strlen my_strlen #endif -int -strlen (const void *_a) +size_t +strlen (const char *_a) { int cnt = 0; unsigned x;