diff options
author | claudio <claudio@openbsd.org> | 2021-01-29 10:47:24 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2021-01-29 10:47:24 +0000 |
commit | 1d6bfbafede4504cc5493081bfa8e3f3860147fb (patch) | |
tree | 9e04fc304dc150a41117638449b0216d101be0aa /sys/kern | |
parent | Adjust regress test, the hash argument to the parse functions was removed. (diff) | |
download | wireguard-openbsd-1d6bfbafede4504cc5493081bfa8e3f3860147fb.tar.xz wireguard-openbsd-1d6bfbafede4504cc5493081bfa8e3f3860147fb.zip |
Use NULL instead of 0 to clear v_socket pointer (which actually clears all
of the v_un pointers).
OK jsg@ mvs@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index e9ee6659bef..2a6adabe6af 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.303 2020/08/23 09:35:32 kn Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.304 2021/01/29 10:47:24 claudio Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -453,7 +453,7 @@ getnewvnode(enum vtagtype tag, struct mount *mp, const struct vops *vops, splx(s); #endif vp->v_flag = 0; - vp->v_socket = 0; + vp->v_socket = NULL; } cache_purge(vp); vp->v_type = VNON; |