summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-08-09 21:56:45 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-08-09 21:56:45 +0000
commit271bfee2be2ff15ab3ae997119248714985562dd (patch)
treeec7c903f40a8fce13b108d444afdb192cc63b278 /arch/mips
parent5d65687612de2acc86818411fff0c5b671c8dd6b (diff)
More cleaning of struct stat for glibc 2.2. The necessary glibc
patches will go into CVS asap. Remove st_flags and st_gen members, nothing ever used them.
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/sysirix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/sysirix.c b/arch/mips/kernel/sysirix.c
index 817e9c1ee..90f2f49f4 100644
--- a/arch/mips/kernel/sysirix.c
+++ b/arch/mips/kernel/sysirix.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 1996 David S. Miller
* Copyright (C) 1997 Miguel de Icaza
- * Copyright (C) 1997, 1998 Ralf Baechle
+ * Copyright (C) 1997, 1998, 1999, 2000 Ralf Baechle
*/
#include <linux/kernel.h>
#include <linux/sched.h>
@@ -1249,9 +1249,9 @@ static inline void irix_xstat64_xlate(struct stat *sb)
ks.st_blksize = (s32) sb->st_blksize;
ks.st_blocks = (long long) sb->st_blocks;
- memcpy(&ks.st_fstype[0], &sb->st_fstype[0], 16);
- ks.st_pad4[0] = ks.st_pad4[1] = ks.st_pad4[2] = ks.st_pad4[3] =
- ks.st_pad4[4] = ks.st_pad4[5] = ks.st_pad4[6] = ks.st_pad4[7] = 0;
+ memset(ks.st_fstype, 0, 16);
+ ks.st_pad4[0] = ks.st_pad4[1] = ks.st_pad4[2] = ks.st_pad4[3] = 0;
+ ks.st_pad4[4] = ks.st_pad4[5] = ks.st_pad4[6] = ks.st_pad4[7] = 0;
/* Now write it all back. */
copy_to_user(sb, &ks, sizeof(struct xstat64));