Fix userland references to LFS_ORPHAN_NEXTFREE.

Forgot to grep for these or do a full distribution build, oops!
This commit is contained in:
riastradh 2020-02-23 15:11:33 +00:00
parent 82cfa75987
commit 2d468aafe8
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass1.c,v 1.45 2015/10/03 08:30:13 dholland Exp $ */
/* $NetBSD: pass1.c,v 1.46 2020/02/23 15:11:33 riastradh Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -307,7 +307,7 @@ checkinode(ino_t inumber, struct inodesc * idesc)
*/
if (lfs_dino_getnlink(fs, dp) <= 0) {
LFS_IENTRY(ifp, fs, inumber, bp);
if (lfs_if_getnextfree(fs, ifp) == LFS_ORPHAN_NEXTFREE) {
if (lfs_if_getnextfree(fs, ifp) == LFS_ORPHAN_NEXTFREE(fs)) {
statemap[inumber] = (mode == LFS_IFDIR ? DCLEAR : FCLEAR);
/* Add this to our list of orphans */
zlnp = emalloc(sizeof *zlnp);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dumplfs.c,v 1.64 2018/06/15 15:16:05 christos Exp $ */
/* $NetBSD: dumplfs.c,v 1.65 2020/02/23 15:11:33 riastradh Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\
#if 0
static char sccsid[] = "@(#)dumplfs.c 8.5 (Berkeley) 5/24/95";
#else
__RCSID("$NetBSD: dumplfs.c,v 1.64 2018/06/15 15:16:05 christos Exp $");
__RCSID("$NetBSD: dumplfs.c,v 1.65 2020/02/23 15:11:33 riastradh Exp $");
#endif
#endif /* not lint */
@ -133,7 +133,7 @@ print_ientry(int i, struct lfs *lfsp, IFILE *ip)
else
printf("%d\tINUSE\t%u\t%8jX\t%s\n",
i, version, (intmax_t)daddr,
nextfree == LFS_ORPHAN_NEXTFREE ? "FFFFFFFF" : "-");
nextfree == LFS_ORPHAN_NEXTFREE(lfsp) ? "orphan" : "-");
}
/*