diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-10-15 10:12:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-10-15 10:12:14 +0000 |
commit | 2413749542a6c51a313edf3c67c2c2450eb675c5 (patch) | |
tree | 1786f8bf0addd8c5415582df3b0b91c48f735032 /sys/arch/octeon | |
parent | e1bc9bb36fd8a33f6d06022111a1b08bfa9f08a2 (diff) |
ansi
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/octeon/conf.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/octeon/octeon/conf.c b/sys/arch/octeon/octeon/conf.c index 126723050c1..e90e5988188 100644 --- a/sys/arch/octeon/octeon/conf.c +++ b/sys/arch/octeon/octeon/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.28 2022/09/02 20:06:56 miod Exp $ */ +/* $OpenBSD: conf.c,v 1.29 2022/10/15 10:12:13 jsg Exp $ */ /* * Copyright (c) 1992, 1993 @@ -257,8 +257,7 @@ dev_t swapdev = makedev(1, 0); * A minimal stub routine can always return 0. */ int -iskmemdev(dev) - dev_t dev; +iskmemdev(dev_t dev) { if (major(dev) == 3 && (minor(dev) == 0 || minor(dev) == 1)) @@ -270,14 +269,13 @@ iskmemdev(dev) * Returns true if def is /dev/zero */ int -iszerodev(dev) - dev_t dev; +iszerodev(dev_t dev) { return (major(dev) == 3 && minor(dev) == 12); } dev_t -getnulldev() +getnulldev(void) { return(makedev(3, 2)); } |