summaryrefslogtreecommitdiff
path: root/lib9p/tests/test_server/fs_whoami.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-19 09:14:20 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-19 12:53:42 -0600
commitb85e0bd570de1245afa2738057925320789601c5 (patch)
tree865061c13a9b256c2b0cd66e0530d9cf951c981a /lib9p/tests/test_server/fs_whoami.c
parent0a700d5e8e5feec3fc07316924a00b2b7cab6050 (diff)
lib9p_idl: Clean up struct stat and numeric user IDs
Diffstat (limited to 'lib9p/tests/test_server/fs_whoami.c')
-rw-r--r--lib9p/tests/test_server/fs_whoami.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib9p/tests/test_server/fs_whoami.c b/lib9p/tests/test_server/fs_whoami.c
index b81e6c8..c493000 100644
--- a/lib9p/tests/test_server/fs_whoami.c
+++ b/lib9p/tests/test_server/fs_whoami.c
@@ -57,21 +57,21 @@ static struct lib9p_stat whoami_file_stat(struct whoami_file *self, struct lib9p
assert(ctx);
return (struct lib9p_stat){
- .kern_type = 0,
- .kern_dev = 0,
- .file_qid = whoami_file_qid(self),
- .file_mode = 0444,
- .file_atime = UTIL9P_ATIME,
- .file_mtime = UTIL9P_MTIME,
- .file_size = whoami_len(ctx),
- .file_name = lib9p_str(self->name),
- .file_owner_uid = lib9p_str("root"),
- .file_owner_gid = lib9p_str("root"),
- .file_last_modified_uid = lib9p_str("root"),
- .file_extension = lib9p_str(NULL),
- .file_owner_n_uid = 0,
- .file_owner_n_gid = 0,
- .file_last_modified_n_uid = 0,
+ .fstype = 0,
+ .fsdev = 0,
+ .qid = whoami_file_qid(self),
+ .mode = 0444,
+ .atime = UTIL9P_ATIME,
+ .mtime = UTIL9P_MTIME,
+ .length = whoami_len(ctx),
+ .name = lib9p_str(self->name),
+ .owner_uname = lib9p_str("root"),
+ .owner_unum = 0,
+ .owner_gname = lib9p_str("root"),
+ .owner_gnum = 0,
+ .last_modifier_uname = lib9p_str("root"),
+ .last_modifier_unum = 0,
+ .extension = lib9p_str(NULL),
};
}
static void whoami_file_wstat(struct whoami_file *self, struct lib9p_srv_ctx *ctx, struct lib9p_stat) {