diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-29 23:39:12 -0400 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-06 23:01:30 -0600 |
commit | 8a9fc1704dcf3ec117a3bf37fd70a44a43873659 (patch) | |
tree | 8970e5d141e0193c15d1f77aee8c248320350979 /lib9p/core_gen/c_marshal.py | |
parent | 30a60acc14696551ccdb61d4006defcb5eea8cc6 (diff) |
lib9p: Use <libmisc/error.h> errnums internally
Diffstat (limited to 'lib9p/core_gen/c_marshal.py')
-rw-r--r-- | lib9p/core_gen/c_marshal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/core_gen/c_marshal.py b/lib9p/core_gen/c_marshal.py index bddf55f..6321837 100644 --- a/lib9p/core_gen/c_marshal.py +++ b/lib9p/core_gen/c_marshal.py @@ -381,7 +381,7 @@ def gen_c_marshal(versions: set[str], typs: list[idl.UserType]) -> str: else: ret += "\tif (needed_size > ctx->max_msg_size) {\n" if isinstance(typ, idl.Message): # SPECIAL (disable for stat) - ret += f'\t\tlib9p_error(ctx, {c9util.IDENT("ERRNO_L_ERANGE")}, "{typ.typname} message too large to marshal into ",\n' + ret += f'\t\tlib9p_error(ctx, E_POSIX_ERANGE, "{typ.typname} message too large to marshal into ",\n' ret += f'\t\t\tctx->version ? "negotiated" : "{'client' if typ.msgid % 2 == 0 else 'server'}", " limit",\n' ret += '\t\t\t" (", needed_size, " > ", ctx->max_msg_size, ")");\n' ret += "\t\treturn true;\n" |