summaryrefslogtreecommitdiff
path: root/lib9p_util
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p_util')
-rw-r--r--lib9p_util/static.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib9p_util/static.c b/lib9p_util/static.c
index 454b57e..62cb147 100644
--- a/lib9p_util/static.c
+++ b/lib9p_util/static.c
@@ -1,6 +1,6 @@
/* lib9p_util/static.c - Serve static files over 9P
*
- * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com>
+ * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
@@ -97,7 +97,7 @@ static implements_lib9p_srv_file *util9p_static_dir_dopen(implements_lib9p_srv_f
struct lib9p_stat stat = VCALL(filep, stat, ctx);
if (lib9p_ctx_has_error(&ctx->basectx))
break;
- lib9p_assert_stat(stat);
+ lib9p_stat_assert(stat);
if (strcmp(stat.file_name.utf8, childname) == 0)
return filep;
}
@@ -132,8 +132,8 @@ static size_t util9p_static_dir_dread(implements_lib9p_srv_file *_self, struct l
struct lib9p_stat stat = VCALL(filep, stat, ctx);
if (lib9p_ctx_has_error(&ctx->basectx))
break;
- lib9p_assert_stat(stat);
- uint32_t nbytes = lib9p_marshal_stat(&ctx->basectx, byte_count-byte_offset, &stat,
+ lib9p_stat_assert(stat);
+ uint32_t nbytes = lib9p_stat_marshal(&ctx->basectx, byte_count-byte_offset, &stat,
&buf[byte_offset]);
if (!nbytes) {
if (obj_offset == _obj_offset)