diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-11 11:37:40 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-11 12:23:25 -0600 |
commit | 28f87fcb1823bb36b9a2e492cf840340f9671036 (patch) | |
tree | d64a784c7481709847c2f0998be23e1d5d8f3671 /lib9p/include | |
parent | 2145808d29f495cf872d9b3ffe05420ff9fc5be6 (diff) |
lib9p: Mark what I intend to complete
Diffstat (limited to 'lib9p/include')
-rw-r--r-- | lib9p/include/lib9p/9p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib9p/include/lib9p/9p.h b/lib9p/include/lib9p/9p.h index 1e1667d..2511e3d 100644 --- a/lib9p/include/lib9p/9p.h +++ b/lib9p/include/lib9p/9p.h @@ -37,19 +37,23 @@ struct lib9p_ctx { uint32_t max_msg_size; /* state */ +#ifdef CONFIG_9P_ENABLE_9P2000_u uint32_t err_num; +#endif char err_msg[CONFIG_9P_MAX_ERR_SIZE]; }; static void lib9p_ctx_clear_error(struct lib9p_ctx *ctx) { assert(ctx); +#ifdef CONFIG_9P_ENABLE_9P2000_u ctx->err_num = 0; +#endif ctx->err_msg[0] = '\0'; } static bool lib9p_ctx_has_error(struct lib9p_ctx *ctx) { assert(ctx); - return ctx->err_num || ctx->err_msg[0]; + return ctx->err_msg[0]; } /** Write an static error into ctx, return -1. */ |