summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_getcwd.c
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2015-01-02 19:29:32 +0000
committerdchagin <dchagin@FreeBSD.org>2015-01-02 19:29:32 +0000
commit09e6c22e4687bcc37e556e696cd4218e15c45cd0 (patch)
tree7a408a08758143412a4f427975ac53716e0bbdf1 /sys/compat/linux/linux_getcwd.c
parent45527e0121428c2cdb7a874da045b325586224d0 (diff)
downloadFreeBSD-src-09e6c22e4687bcc37e556e696cd4218e15c45cd0.zip
FreeBSD-src-09e6c22e4687bcc37e556e696cd4218e15c45cd0.tar.gz
Cast *path to silence clang -Wpointer-sign warning.
MFC after: 1 week
Diffstat (limited to 'sys/compat/linux/linux_getcwd.c')
-rw-r--r--sys/compat/linux/linux_getcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c
index 04f92e8..3f2b475 100644
--- a/sys/compat/linux/linux_getcwd.c
+++ b/sys/compat/linux/linux_getcwd.c
@@ -430,7 +430,7 @@ linux_getcwd(struct thread *td, struct linux_getcwd_args *args)
path = (char *)malloc(len, M_TEMP, M_WAITOK);
- error = kern___getcwd(td, path, UIO_SYSSPACE, len);
+ error = kern___getcwd(td, (u_char *)path, UIO_SYSSPACE, len);
if (!error) {
lenused = strlen(path) + 1;
if (lenused <= args->bufsize) {
OpenPOWER on IntegriCloud