Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makefs/chfs As this code is used by tools, and thus...



details:   https://anonhg.NetBSD.org/src/rev/b8b8bf398d98
branches:  trunk
changeset: 779042:b8b8bf398d98
user:      dogcow <dogcow%NetBSD.org@localhost>
date:      Fri Apr 27 20:58:54 2012 +0000

description:
As this code is used by tools, and thus needs to be portable,
eliminate all the mucking around for an undocumented, seemingly
unused field and use 0.

diffstat:

 usr.sbin/makefs/chfs/chfs_mkfs.c |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (16 lines):

diff -r 3d78083fab60 -r b8b8bf398d98 usr.sbin/makefs/chfs/chfs_mkfs.c
--- a/usr.sbin/makefs/chfs/chfs_mkfs.c  Fri Apr 27 18:15:55 2012 +0000
+++ b/usr.sbin/makefs/chfs/chfs_mkfs.c  Fri Apr 27 20:58:54 2012 +0000
@@ -209,11 +209,7 @@
        }
 
        fdirent.version = htole64(version++);
-#ifdef HAVE_STRUCT_STAT_ST_MTIMENSEC
-       fdirent.mctime = htole32(node->inode->st.st_mtimensec);
-#else
-       fdirent.mctime = htole32(node->inode->st.st_mtimespec.tv_nsec);
-#endif
+       fdirent.mctime = 0;
        fdirent.nsize = htole32(strlen(name));
        fdirent.dtype = htole32(IFTOCHT(node->type & S_IFMT));
        fdirent.name_crc = htole32(crc32(0, (uint8_t *)name, fdirent.nsize));



Home | Main Index | Thread Index | Old Index