summaryrefslogtreecommitdiff
path: root/libc/arch-mips/string/mips_strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/arch-mips/string/mips_strlen.c')
-rw-r--r--libc/arch-mips/string/mips_strlen.c5
1 files 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 <string.h>
#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;