From bb14e1f16b5d42934e55c7a53117cf50e1153188 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 25 Mar 2025 00:15:43 -0600 Subject: lib9p: protogen: flatten the validate functions, same as (un)marshal --- lib9p/protogen/c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib9p/protogen/c.py') diff --git a/lib9p/protogen/c.py b/lib9p/protogen/c.py index a7e1773..0cc5815 100644 --- a/lib9p/protogen/c.py +++ b/lib9p/protogen/c.py @@ -185,8 +185,8 @@ const char *const {c9util.ident('_table_ver_name')}[{c9util.ver_enum('NUM')}] = ) ret += f""" -LM_FLATTEN bool {c9util.ident('_stat_validate')}(struct _validate_ctx *ctx) {{ -\treturn validate_stat(ctx); +LM_FLATTEN ssize_t {c9util.ident('_stat_validate')}(struct _validate_ctx *ctx, uint32_t *ret_net_size) {{ +\treturn validate_stat(ctx, ret_net_size); }} LM_FLATTEN void {c9util.ident('_stat_unmarshal')}(struct _unmarshal_ctx *ctx, struct {c9util.ident('stat')} *out) {{ \tunmarshal_stat(ctx, out); -- cgit v1.2.3-2-g168b