diff options
author | 2018-06-23 14:38:59 +0000 | |
---|---|---|
committer | 2018-06-23 14:38:59 +0000 | |
commit | 396bda40b1c12e8eee880022b5391d6e9bd658aa (patch) | |
tree | 4e7116e52e81304215c199d938026e3c9b69c6a2 /sys/kern/uipc_domain.c | |
parent | PkgCreate has no business knowing details of define-tag (diff) | |
download | wireguard-openbsd-396bda40b1c12e8eee880022b5391d6e9bd658aa.tar.xz wireguard-openbsd-396bda40b1c12e8eee880022b5391d6e9bd658aa.zip |
Replace value with a constant
OK bluhm@, jca@
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r-- | sys/kern/uipc_domain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 102120fc1b6..fafd5da50c7 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_domain.c,v 1.55 2017/11/23 13:45:46 mpi Exp $ */ +/* $OpenBSD: uipc_domain.c,v 1.56 2018/06/23 14:38:59 denis Exp $ */ /* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */ /* @@ -141,7 +141,7 @@ pffindproto(int family, int protocol, int type) const struct protosw *pr; const struct protosw *maybe = NULL; - if (family == 0) + if (family == PF_UNSPEC) return (NULL); dp = pffinddomain(family); @@ -176,7 +176,7 @@ net_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp, return (EISDIR); /* overloaded */ family = name[0]; - if (family == 0) + if (family == PF_UNSPEC) return (0); #if NBPFILTER > 0 if (family == PF_BPF) |