diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-02 12:44:41 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-02 12:44:41 -0600 |
commit | 50cfe77ace4caa424352a163f90bbf7a684b60d6 (patch) | |
tree | eec52aca00a7dada9335cef9f3f6555b4039c851 /lib9p/types.c | |
parent | ada828fc3eaf9891e1bbb6503106d36ef53b6c8a (diff) |
more bitfield
Diffstat (limited to 'lib9p/types.c')
-rw-r--r-- | lib9p/types.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/types.c b/lib9p/types.c index 4854ed4..c4812d1 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_qid_type(ctx) + return checksize_qt(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_qid_type(ctx, &out->type); + unmarshal_qt(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_qid_type(ctx, &val->type) + return marshal_qt(ctx, &val->type) || marshal_4(ctx, &val->vers) || marshal_8(ctx, &val->path); } |