summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-06-23 22:08:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-06-23 22:08:38 +0000
commitd6bb627c7b9257f11ba10c398209f1400a1d09d0 (patch)
treeac0694586de5b9274f978de4b58a3842ae6b908f /sys/arch/macppc
parentac485638634400d44fe9adbec493296c38ffcd74 (diff)
If an ioctl(2) request isn't implemented we should return ENOTTY.
ok deraadt@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r--sys/arch/macppc/macppc/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/mem.c b/sys/arch/macppc/macppc/mem.c
index 945ee7435d6..1046e68e466 100644
--- a/sys/arch/macppc/macppc/mem.c
+++ b/sys/arch/macppc/macppc/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.28 2022/03/13 12:33:01 mpi Exp $ */
+/* $OpenBSD: mem.c,v 1.29 2024/06/23 22:08:37 kettenis Exp $ */
/* $NetBSD: mem.c,v 1.1 1996/09/30 16:34:50 ws Exp $ */
/*
@@ -314,5 +314,5 @@ mmioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p)
return 0;
}
- return (EOPNOTSUPP);
+ return (ENOTTY);
}