From 271bfee2be2ff15ab3ae997119248714985562dd Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 9 Aug 2000 21:56:45 +0000 Subject: 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. --- arch/mips/kernel/sysirix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'arch/mips') 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 #include @@ -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)); -- cgit v1.2.3