aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-12-14 16:14:04 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-07 09:31:03 +0000
commit7467c537a50e558588e369a1409f50684ddefb25 (patch)
treebbc6d8242a3c3ef6e8cb3bbc3473aa1a5f0cc250 /tools
parent4e64fb9f4901e99ce02f13d45f370e75d53075a6 (diff)
downloadsrc-7467c537a50e558588e369a1409f50684ddefb25.tar.gz
src-7467c537a50e558588e369a1409f50684ddefb25.zip
Fix warnings during bootstrap phase on macOS
Diffstat (limited to 'tools')
-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 */
}