summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-20 22:24:46 -0400
committerIan Moffett <ian@osmora.org>2025-10-20 22:24:46 -0400
commit988a5e5f7ae95fc5ec6bc2d61bb06d47363b7e7d (patch)
treef2ed6a44296aaa0558dc60dfe63dacf10cbef4a3 /src/sys
parentb3b838c14d5999ef5e603ce54ee28582aa648507 (diff)
kern: null: Return a count of zero in read hook
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/os/os_null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/os/os_null.c b/src/sys/os/os_null.c
index e142c6f..ae0fcf4 100644
--- a/src/sys/os/os_null.c
+++ b/src/sys/os/os_null.c
@@ -41,7 +41,7 @@ static ssize_t
null_read(struct devfs_node *dnp, struct dev_iobuf *io, int flags)
{
/* We give you a whole lot of nothing! */
- return io->count;
+ return 0;
}
/*