aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/cross-build/include')
-rw-r--r--tools/build/cross-build/include/mac/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/cross-build/include/mac/string.h b/tools/build/cross-build/include/mac/string.h
index 5e7823a5f291..3f9ec4935a37 100644
--- a/tools/build/cross-build/include/mac/string.h
+++ b/tools/build/cross-build/include/mac/string.h
@@ -51,7 +51,7 @@ strchrnul(const char *p, int ch)
c = ch;
for (;; ++p) {
if (*p == c || *p == '\0')
- return ((char *)p);
+ return (__DECONST(char *, p));
}
/* NOTREACHED */
}