diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-06-10 23:10:30 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2008-06-10 23:10:30 +0000 |
commit | 7ee50b3f90920f1b1e1d9ad8cd2898f249ba4f71 (patch) | |
tree | f55a5f123e32c765618921e5e1bf73eb119a5e27 /sbin/fsck_ffs/utilities.c | |
parent | 00999f3dca30c91ccbd4f51b23ead58bf9b61b92 (diff) |
reduce mem usage by about 20% by packing state and type of an inode in a single
byte. Original diff by drahn@; twists by me; ok millert@ thib@
Diffstat (limited to 'sbin/fsck_ffs/utilities.c')
-rw-r--r-- | sbin/fsck_ffs/utilities.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/utilities.c b/sbin/fsck_ffs/utilities.c index 664d4d13bbd..1ca340ee89e 100644 --- a/sbin/fsck_ffs/utilities.c +++ b/sbin/fsck_ffs/utilities.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utilities.c,v 1.34 2007/06/25 19:59:55 otto Exp $ */ +/* $OpenBSD: utilities.c,v 1.35 2008/06/10 23:10:29 otto Exp $ */ /* $NetBSD: utilities.c,v 1.18 1996/09/27 22:45:20 christos Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)utilities.c 8.1 (Berkeley) 6/5/93"; #else -static const char rcsid[] = "$OpenBSD: utilities.c,v 1.34 2007/06/25 19:59:55 otto Exp $"; +static const char rcsid[] = "$OpenBSD: utilities.c,v 1.35 2008/06/10 23:10:29 otto Exp $"; #endif #endif /* not lint */ @@ -456,7 +456,7 @@ getpathname(char *namebuf, size_t namebuflen, ino_t curdir, ino_t ino) return; } if (busy || - (statemap[curdir] != DSTATE && statemap[curdir] != DFOUND)) { + (GET_ISTATE(curdir) != DSTATE && GET_ISTATE(curdir) != DFOUND)) { (void)strlcpy(namebuf, "?", namebuflen); return; } |