[PARISC] Fix HPUX compat compile with current GCC
GCC no longer allows a cast as lvalue; fix the same way fs/readdir.c was Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
This commit is contained in:
parent
01232e9329
commit
32f4681392
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset,
|
||||||
put_user(namlen, &dirent->d_namlen);
|
put_user(namlen, &dirent->d_namlen);
|
||||||
copy_to_user(dirent->d_name, name, namlen);
|
copy_to_user(dirent->d_name, name, namlen);
|
||||||
put_user(0, dirent->d_name + namlen);
|
put_user(0, dirent->d_name + namlen);
|
||||||
((char *) dirent) += reclen;
|
dirent = (void __user *)dirent + reclen;
|
||||||
buf->current_dir = dirent;
|
buf->current_dir = dirent;
|
||||||
buf->count -= reclen;
|
buf->count -= reclen;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue