From c648a13d4200b1c3f3212a0df55d03dd6dc0ee4b Mon Sep 17 00:00:00 2001 From: DH Date: Sun, 12 Oct 2025 18:01:14 +0300 Subject: [PATCH] orbis: Fix debug build --- kernel/orbis/include/orbis/IoDevice.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/orbis/include/orbis/IoDevice.hpp b/kernel/orbis/include/orbis/IoDevice.hpp index 07db206a9..2049e3f47 100644 --- a/kernel/orbis/include/orbis/IoDevice.hpp +++ b/kernel/orbis/include/orbis/IoDevice.hpp @@ -101,7 +101,7 @@ template struct IoDeviceWithIoctl : IoDevice { void addIoctl(ErrorCode (*handler)(Thread *thread, InstanceT *device, T &arg)) { constexpr auto id = ioctl::id(Cmd); - assert(ioctlTable[id].handler == unhandledIoctl); + assert(ioctlTable[id].handler == nullptr); IoctlHandlerEntry &entry = ioctlTable[id]; @@ -132,7 +132,7 @@ template struct IoDeviceWithIoctl : IoDevice { void addIoctl(ErrorCode (*handler)(Thread *thread, InstanceT *device)) { constexpr auto id = ioctl::id(Cmd); - assert(ioctlTable[id].handler == unhandledIoctl); + assert(ioctlTable[id].handler == nullptr); IoctlHandlerEntry &entry = ioctlTable[id]; @@ -156,7 +156,7 @@ template struct IoDeviceWithIoctl : IoDevice { void addIoctl(std::pair (*handler)(Thread *thread, InstanceT *device)) { constexpr auto id = ioctl::id(Cmd); - assert(ioctlTable[id].handler == unhandledIoctl); + assert(ioctlTable[id].handler == nullptr); IoctlHandlerEntry &entry = ioctlTable[id];