diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-24 23:26:15 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-06-24 23:26:15 +0000 |
commit | a3f276b75c2ba731ca2481306d29d89738aaeba9 (patch) | |
tree | 817edba275c130b7363047505f14b0606e9d5aea /sys | |
parent | f39ea40ca90344ebc8b64cca151ee46240223e97 (diff) |
fix error returns from open and close
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 24a2db11d02..20a95ef26ae 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.11 2001/06/24 23:10:23 deraadt Exp $ */ +/* $OpenBSD: pf.c,v 1.12 2001/06/24 23:26:14 art Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -492,22 +492,22 @@ int pfopen(dev_t dev, int flags, int fmt, struct proc *p) { if (minor(dev) >= 1) - return ENXIO; - return NO_ERROR; + return (ENXIO); + return (0); } int pfclose(dev_t dev, int flags, int fmt, struct proc *p) { if (minor(dev) >= 1) - return ENXIO; - return NO_ERROR; + return (ENXIO); + return (0); } int pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) { - int error = NO_ERROR; + int error = 0; struct ioctlbuffer *ub; void *kb = NULL; int s; |