artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6470d54
)
fix previous; ffs_vinit() requires #ifdef _KERNEL to not break the
author
natano
<natano@openbsd.org>
Wed, 10 Aug 2016 11:33:01 +0000
(11:33 +0000)
committer
natano
<natano@openbsd.org>
Wed, 10 Aug 2016 11:33:01 +0000
(11:33 +0000)
sbin/fsck_ffs build. bad natano!
reported by naddy
sys/ufs/ffs/ffs_subr.c
patch
|
blob
|
history
diff --git
a/sys/ufs/ffs/ffs_subr.c
b/sys/ufs/ffs/ffs_subr.c
index
d2455d4
..
2aedef0
100644
(file)
--- a/
sys/ufs/ffs/ffs_subr.c
+++ b/
sys/ufs/ffs/ffs_subr.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ffs_subr.c,v 1.3
1 2016/08/10 08:04:57
natano Exp $ */
+/* $OpenBSD: ffs_subr.c,v 1.3
2 2016/08/10 11:33:01
natano Exp $ */
/* $NetBSD: ffs_subr.c,v 1.6 1996/03/17 02:16:23 christos Exp $ */
/*
@@
-245,6
+245,7
@@
ffs_isfreeblock(struct fs *fs, u_char *cp, daddr_t h)
}
}
+#ifdef _KERNEL
/*
* Initialize the vnode associated with a new inode, handle aliased
* vnodes.
@@
-309,3
+310,4
@@
ffs_vinit(struct mount *mntp, struct vnode **vpp)
*vpp = vp;
return (0);
}
+#endif /* _KERNEL */