]> git.hungrycats.org Git - linux/commitdiff
ia64: Avoid use of cast expressions as lvalues. They're ugly and may be
authorDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 12 Jan 2004 08:31:20 +0000 (00:31 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 12 Jan 2004 08:31:20 +0000 (00:31 -0800)
dropped from GCC at some point in the future.

arch/ia64/ia32/sys_ia32.c

index e532fddb3ac201fe1086440707dfbf146c705f9c..39d1e95bc69291c65fa8d8095c7be7077d71fd14 100644 (file)
@@ -741,7 +741,7 @@ filldir32 (void *__buf, const char *name, int namlen, loff_t offset, ino_t ino,
            || copy_to_user(dirent->d_name, name, namlen)
            || put_user(0, dirent->d_name + namlen))
                return -EFAULT;
-       ((char *) dirent) += reclen;
+       dirent = (struct compat_dirent *) ((char *) dirent + reclen);
        buf->current_dir = dirent;
        buf->count -= reclen;
        return 0;