Cast *path to silence clang -Wpointer-sign warning.

MFC after:	1 week
This commit is contained in:
Dmitry Chagin 2015-01-02 19:29:32 +00:00
parent fe522dc9e3
commit 9fa04b52ec

View file

@ -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) {