aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorAlfonso Gregory <gfunni234@gmail.com>2021-07-14 21:48:35 +0000
committerWarner Losh <imp@FreeBSD.org>2021-07-14 22:11:38 +0000
commit56d33e86b74b197a36f42255824b56715c96a596 (patch)
treef3d3ede585a0ab63cacea39aeba107c45989450d /sys/sys
parent7f5508fe78d17af968fe67e00ffa7c975aa2c67d (diff)
downloadsrc-56d33e86b74b197a36f42255824b56715c96a596.tar.gz
src-56d33e86b74b197a36f42255824b56715c96a596.zip
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
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/libkern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
index c5bd5a07a0b9..37838c99ba0c 100644
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -174,8 +174,8 @@ char *strchr(const char *, int);
char *strchrnul(const char *, int);
int strcmp(const char *, const char *);
char *strcpy(char * __restrict, const char * __restrict);
-size_t strcspn(const char * __restrict, const char * __restrict) __pure;
char *strdup_flags(const char *__restrict, struct malloc_type *, int);
+size_t strcspn(const char *, const char *) __pure;
char *strdup(const char *__restrict, struct malloc_type *);
char *strncat(char *, const char *, size_t);
char *strndup(const char *__restrict, size_t, struct malloc_type *);