diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-29 23:39:12 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-06 23:01:30 -0600 |
commit | 8a9fc1704dcf3ec117a3bf37fd70a44a43873659 (patch) | |
tree | 8970e5d141e0193c15d1f77aee8c248320350979 /lib9p/tests/test_server/fs_whoami.c | |
parent | 30a60acc14696551ccdb61d4006defcb5eea8cc6 (diff) |
lib9p: Use <libmisc/error.h> errnums internally
Diffstat (limited to 'lib9p/tests/test_server/fs_whoami.c')
-rw-r--r-- | lib9p/tests/test_server/fs_whoami.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/tests/test_server/fs_whoami.c b/lib9p/tests/test_server/fs_whoami.c index 6cc46ac..273d659 100644 --- a/lib9p/tests/test_server/fs_whoami.c +++ b/lib9p/tests/test_server/fs_whoami.c @@ -73,12 +73,12 @@ static struct lib9p_srv_stat whoami_file_stat(struct whoami_file *self, struct l static void whoami_file_wstat(struct whoami_file *self, struct lib9p_srv_ctx *ctx, struct lib9p_srv_stat) { assert(self); assert(ctx); - lib9p_error(&ctx->basectx, LIB9P_ERRNO_L_EROFS, "cannot wstat API file"); + lib9p_error(&ctx->basectx, E_POSIX_EROFS, "cannot wstat API file"); } static void whoami_file_remove(struct whoami_file *self, struct lib9p_srv_ctx *ctx) { assert(self); assert(ctx); - lib9p_error(&ctx->basectx, LIB9P_ERRNO_L_EROFS, "cannot remove API file"); + lib9p_error(&ctx->basectx, E_POSIX_EROFS, "cannot remove API file"); } LIB9P_SRV_NOTDIR(struct whoami_file, whoami_file) @@ -138,7 +138,7 @@ static void whoami_fio_pread(struct whoami_fio *self, struct lib9p_srv_ctx *ctx, if (byte_offset > (uint64_t)data_size) { lib9p_error(&ctx->basectx, - LIB9P_ERRNO_L_EINVAL, "offset is past end-of-file length"); + E_POSIX_EINVAL, "offset is past end-of-file length"); return; } |