summaryrefslogtreecommitdiff
path: root/lib9p/types.gen
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/types.gen')
-rwxr-xr-xlib9p/types.gen7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib9p/types.gen b/lib9p/types.gen
index 590e707..a597022 100755
--- a/lib9p/types.gen
+++ b/lib9p/types.gen
@@ -359,7 +359,7 @@ const char *{idprefix}version_str(enum {idprefix}version ver) {{
return version_strs[ver];
}}
-static const char *msg_type_strs[0xFF] = {{
+static const char *msg_type_strs[0x100] = {{
"""
id2name: dict[int, str] = {}
for msg in structs:
@@ -577,11 +577,6 @@ static inline bool marshal_8(struct _marshal_ctx *ctx, uint64_t *val) {
ret += "}\n"
continue
- if struct.name == "Rerror": # SPECIAL
- ret += "\n\t/* Truncate the error-string if necessary to avoid returning ERANGE. */"
- ret += "\n\tif (((uint32_t)val->ename.len) + ctx->ctx->Rerror_overhead > ctx->ctx->max_msg_size)"
- ret += "\n\t\tval->ename.len = ctx->ctx->max_msg_size - ctx->ctx->Rerror_overhead;"
-
prefix0 = "\treturn "
prefix1 = "\t || "
prefix2 = "\t "