summaryrefslogtreecommitdiff
path: root/lib9p_util/static.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p_util/static.c')
-rw-r--r--lib9p_util/static.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib9p_util/static.c b/lib9p_util/static.c
index 1726319..c35d28c 100644
--- a/lib9p_util/static.c
+++ b/lib9p_util/static.c
@@ -29,7 +29,7 @@ static struct lib9p_qid util9p_static_dir_qid(struct util9p_static_dir *self) {
return (struct lib9p_qid){
.type = LIB9P_QT_DIR,
.vers = 1,
- .path = self->pathnum,
+ .path = self->c.pathnum,
};
}
@@ -39,14 +39,14 @@ static struct lib9p_srv_stat util9p_static_dir_stat(struct util9p_static_dir *se
return (struct lib9p_srv_stat){
.qid = util9p_static_dir_qid(self),
- .mode = LIB9P_DM_DIR | (self->perm & 0555),
- .atime_sec = self->atime,
- .mtime_sec = self->mtime,
+ .mode = LIB9P_DM_DIR | (self->c.perm & 0555),
+ .atime_sec = self->c.atime,
+ .mtime_sec = self->c.mtime,
.size = 0,
- .name = lib9p_str(self->name),
- .owner_uid = { .name = lib9p_str(self->u_name), .num = self->u_num },
- .owner_gid = { .name = lib9p_str(self->g_name), .num = self->g_num },
- .last_modifier_uid = { .name = lib9p_str(self->m_name), .num = self->m_num },
+ .name = lib9p_str(self->c.name),
+ .owner_uid = { .name = lib9p_str(self->c.u_name), .num = self->c.u_num },
+ .owner_gid = { .name = lib9p_str(self->c.g_name), .num = self->c.g_num },
+ .last_modifier_uid = { .name = lib9p_str(self->c.m_name), .num = self->c.m_num },
.extension = lib9p_str(NULL),
};
}
@@ -135,7 +135,7 @@ static struct lib9p_qid util9p_static_file_qid(struct util9p_static_file *self)
return (struct lib9p_qid){
.type = LIB9P_QT_FILE,
.vers = 1,
- .path = self->pathnum,
+ .path = self->c.pathnum,
};
}
@@ -157,14 +157,14 @@ static struct lib9p_srv_stat util9p_static_file_stat(struct util9p_static_file *
return (struct lib9p_srv_stat){
.qid = util9p_static_file_qid(self),
- .mode = self->perm & 0444,
- .atime_sec = self->atime,
- .mtime_sec = self->mtime,
+ .mode = self->c.perm & 0444,
+ .atime_sec = self->c.atime,
+ .mtime_sec = self->c.mtime,
.size = (uint64_t)util9p_static_file_size(self),
- .name = lib9p_str(self->name),
- .owner_uid = { .name = lib9p_str(self->u_name), .num = self->u_num },
- .owner_gid = { .name = lib9p_str(self->g_name), .num = self->g_num },
- .last_modifier_uid = { .name = lib9p_str(self->m_name), .num = self->m_num },
+ .name = lib9p_str(self->c.name),
+ .owner_uid = { .name = lib9p_str(self->c.u_name), .num = self->c.u_num },
+ .owner_gid = { .name = lib9p_str(self->c.g_name), .num = self->c.g_num },
+ .last_modifier_uid = { .name = lib9p_str(self->c.m_name), .num = self->c.m_num },
.extension = lib9p_str(NULL),
};
}