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/luna88k | |
parent | e1bc9bb36fd8a33f6d06022111a1b08bfa9f08a2 (diff) |
ansi
Diffstat (limited to 'sys/arch/luna88k')
-rw-r--r-- | sys/arch/luna88k/luna88k/conf.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/luna88k/luna88k/conf.c b/sys/arch/luna88k/luna88k/conf.c index 9c51bfbaa43..d4726291402 100644 --- a/sys/arch/luna88k/luna88k/conf.c +++ b/sys/arch/luna88k/luna88k/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.36 2022/09/02 20:06:56 miod Exp $ */ +/* $OpenBSD: conf.c,v 1.37 2022/10/15 10:12:13 jsg Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -181,8 +181,7 @@ dev_t swapdev = makedev(3, 0); * Returns true if dev is /dev/mem or /dev/kmem. */ int -iskmemdev(dev) - dev_t dev; +iskmemdev(dev_t dev) { return (major(dev) == mem_no && minor(dev) < 2); @@ -192,15 +191,14 @@ iskmemdev(dev) * Returns true if dev is /dev/zero. */ int -iszerodev(dev) - dev_t dev; +iszerodev(dev_t dev) { return (major(dev) == mem_no && minor(dev) == 12); } dev_t -getnulldev() +getnulldev(void) { return makedev(mem_no, 2); } |