summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2018-04-08 18:57:39 +0000
committerguenther <guenther@openbsd.org>2018-04-08 18:57:39 +0000
commit0c4143b58cc01c54b6213011c3331cd662195f4c (patch)
treed43d82e1cf362f097a2c58e3a1dbf4e5323a7ca6 /sys/miscfs
parentActually describe the parameters rather than calling facts BUGS (diff)
downloadwireguard-openbsd-0c4143b58cc01c54b6213011c3331cd662195f4c.tar.xz
wireguard-openbsd-0c4143b58cc01c54b6213011c3331cd662195f4c.zip
AF_LOCAL was a failed attempt (by POSIX?) to seem less UNIX-specific, but
AF_UNIX is both the historical _and_ standard name, so prefer and recommend it in the headers, manpages, and kernel. ok miller@ deraadt@ schwarze@
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fifofs/fifo_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c
index 7fcd631803b..1f45487fabb 100644
--- a/sys/miscfs/fifofs/fifo_vnops.c
+++ b/sys/miscfs/fifofs/fifo_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fifo_vnops.c,v 1.63 2018/02/19 11:35:41 mpi Exp $ */
+/* $OpenBSD: fifo_vnops.c,v 1.64 2018/04/08 18:57:39 guenther Exp $ */
/* $NetBSD: fifo_vnops.c,v 1.18 1996/03/16 23:52:42 christos Exp $ */
/*
@@ -130,13 +130,13 @@ fifo_open(void *v)
if ((fip = vp->v_fifoinfo) == NULL) {
fip = malloc(sizeof(*fip), M_VNODE, M_WAITOK);
vp->v_fifoinfo = fip;
- if ((error = socreate(AF_LOCAL, &rso, SOCK_STREAM, 0)) != 0) {
+ if ((error = socreate(AF_UNIX, &rso, SOCK_STREAM, 0)) != 0) {
free(fip, M_VNODE, sizeof *fip);
vp->v_fifoinfo = NULL;
return (error);
}
fip->fi_readsock = rso;
- if ((error = socreate(AF_LOCAL, &wso, SOCK_STREAM, 0)) != 0) {
+ if ((error = socreate(AF_UNIX, &wso, SOCK_STREAM, 0)) != 0) {
(void)soclose(rso);
free(fip, M_VNODE, sizeof *fip);
vp->v_fifoinfo = NULL;