]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove incorrect __restricted labels from strcspn
authorAlfonso Gregory <gfunni234@gmail.com>
Wed, 14 Jul 2021 21:48:35 +0000 (15:48 -0600)
committerWarner Losh <imp@FreeBSD.org>
Wed, 21 Jul 2021 16:16:32 +0000 (10:16 -0600)
commit18b511454f779305f828b71ad5df69d1c1a3b3ba
tree77ab0ac9ef0a36976912354b27c67daf73f0875b
parent3cd395b3b9d2ab70d589d27203904238f138442f
Remove incorrect __restricted labels from strcspn

strcspn should never have had the __restrict keywords. While both of
these strings are const, it may have unindended side effects. While this
is the kernel, the POSIX definition also omits restrict.

Reviewed by: imp@
Pull Request: https://github.com/freebsd/freebsd-src/pull/497

(cherry picked from commit 56d33e86b74b197a36f42255824b56715c96a596)
sys/libkern/strcspn.c
sys/sys/libkern.h