summaryrefslogtreecommitdiff
path: root/lib9p/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/types.c')
-rw-r--r--lib9p/types.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/types.c b/lib9p/types.c
index 19ed322..4854ed4 100644
--- a/lib9p/types.c
+++ b/lib9p/types.c
@@ -344,7 +344,7 @@ static ALWAYS_INLINE bool checksize_s(struct _checksize_ctx *ctx) {
}
static ALWAYS_INLINE bool checksize_qid(struct _checksize_ctx *ctx) {
- return checksize_1(ctx)
+ return checksize_qid_type(ctx)
|| checksize_4(ctx)
|| checksize_8(ctx);
}
@@ -571,7 +571,7 @@ static ALWAYS_INLINE void unmarshal_s(struct _unmarshal_ctx *ctx, struct lib9p_s
static ALWAYS_INLINE void unmarshal_qid(struct _unmarshal_ctx *ctx, struct lib9p_qid *out) {
memset(out, 0, sizeof(*out));
- unmarshal_1(ctx, &out->type);
+ unmarshal_qid_type(ctx, &out->type);
unmarshal_4(ctx, &out->vers);
unmarshal_8(ctx, &out->path);
}
@@ -860,7 +860,7 @@ static ALWAYS_INLINE bool marshal_s(struct _marshal_ctx *ctx, struct lib9p_s *va
}
static ALWAYS_INLINE bool marshal_qid(struct _marshal_ctx *ctx, struct lib9p_qid *val) {
- return marshal_1(ctx, &val->type)
+ return marshal_qid_type(ctx, &val->type)
|| marshal_4(ctx, &val->vers)
|| marshal_8(ctx, &val->path);
}