summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_sysent.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-01-11 07:02:03 +0000
committerdchagin <dchagin@FreeBSD.org>2015-01-11 07:02:03 +0000
commit4f4ad9e7dd421d2d208fb3478dfc62a30c7bd6c2 (patch)
tree22b3b5538ebc14366ea7b0e1da71eb92aefcf4d2 /sys/kern/init_sysent.c
parent11947f9f2cfc44c72828b69b62c16c142234d5b4 (diff)
downloadFreeBSD-src-4f4ad9e7dd421d2d208fb3478dfc62a30c7bd6c2.zip
FreeBSD-src-4f4ad9e7dd421d2d208fb3478dfc62a30c7bd6c2.tar.gz
MFC r276564, r276654:
Cast *path to silence clang -Wpointer-sign warning. Indeed, instead of hiding the kern___getcwd() bug by bogus cast in r276564, change path type to char * (pathnames are always char *). And remove bogus casts of malloc(). kern___getcwd() internally doesn't actually use or support u_char * paths, except to copy them to a normal char * path. These changes are not visible to libc as libc/gen/getcwd.c misdeclares __getcwd() as taking a plain char * path. While here remove _SYS_SYSPROTO_H_ for __getcwd() syscall as we always have sysproto.h.
Diffstat (limited to 'sys/kern/init_sysent.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud