diff options
author | Matthew Wilcox <matthew@wil.cx> | 2006-09-19 18:44:38 -0400 |
---|---|---|
committer | Matthew Wilcox <willy@parisc-linux.org> | 2006-10-04 08:50:37 -0400 |
commit | 32f468139209459c3293a0895cf5b8e66ccc30a5 (patch) | |
tree | 0946403b7666a323a65981d4f803483b55620ebb /arch/parisc/hpux/fs.c | |
parent | 01232e932988fcf6ad87be49f69e633dd652a46d (diff) |
[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>
Diffstat (limited to 'arch/parisc/hpux/fs.c')
-rw-r--r-- | arch/parisc/hpux/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/hpux/fs.c b/arch/parisc/hpux/fs.c index 6e79dbf3f6b..2d58b92b57e 100644 --- a/arch/parisc/hpux/fs.c +++ b/arch/parisc/hpux/fs.c | |||
@@ -96,7 +96,7 @@ static int filldir(void * __buf, const char * name, int namlen, loff_t offset, | |||
96 | put_user(namlen, &dirent->d_namlen); | 96 | put_user(namlen, &dirent->d_namlen); |
97 | copy_to_user(dirent->d_name, name, namlen); | 97 | copy_to_user(dirent->d_name, name, namlen); |
98 | put_user(0, dirent->d_name + namlen); | 98 | put_user(0, dirent->d_name + namlen); |
99 | ((char *) dirent) += reclen; | 99 | dirent = (void __user *)dirent + reclen; |
100 | buf->current_dir = dirent; | 100 | buf->current_dir = dirent; |
101 | buf->count -= reclen; | 101 | buf->count -= reclen; |
102 | return 0; | 102 | return 0; |