diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-01-14 01:11:17 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-01-14 01:11:17 -0700 |
commit | f7c75fe0113cdbd3e13b4e22edf76d9456c4b064 (patch) | |
tree | d65c0c26f7d100085d6a563aea9df1b501cbbd19 /lib9p_util | |
parent | 7eda822ef31a15d22de03fc1eec7d995f661b26d (diff) | |
parent | a02f59f255006a2d6cb236fe2448b69c9c223adb (diff) |
Merge branch 'lukeshu/9p-code-size'
Diffstat (limited to 'lib9p_util')
-rw-r--r-- | lib9p_util/static.c | 8 |
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) |