Fix LP64 builds after OpenBSD string changes.
Change-Id: I07202f6484e716d153d0387fcfc023e119438251
diff --git a/libc/bionic/__memcmp16.cpp b/libc/bionic/__memcmp16.cpp
index bee0df1..eb3a08b 100644
--- a/libc/bionic/__memcmp16.cpp
+++ b/libc/bionic/__memcmp16.cpp
@@ -31,14 +31,13 @@
#include <stddef.h>
// Unoptimized version of __memcmp16.
-int __memcmp16(const unsigned short *ptr1, const unsigned short *ptr2, size_t n) {
-
+extern "C" int __memcmp16(const unsigned short* lhs, const unsigned short* rhs, size_t n) {
for (size_t i = 0; i < n; i++) {
- if (*ptr1 != *ptr2) {
- return *ptr1 - *ptr2;
+ if (*lhs != *rhs) {
+ return *lhs - *rhs;
}
- ptr1++;
- ptr2++;
+ lhs++;
+ rhs++;
}
return 0;
}