diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-17 13:33:51 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-05-17 13:33:51 -0600 |
commit | 42fb27570262b52e2ca889030c621b5f4af76fe1 (patch) | |
tree | 1d70f96baa5089f8878a9c121ff0770846ad4090 /lib9p/core.c | |
parent | 18ddce6270391e5c1924394f8b5d8079ad73289e (diff) | |
parent | 556f3ff6ccb9fa4b193d91216f85e8ade33b4383 (diff) |
Merge branch 'lukeshu/lint-ish'
Diffstat (limited to 'lib9p/core.c')
-rw-r--r-- | lib9p/core.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib9p/core.c b/lib9p/core.c index 464b31d..942db05 100644 --- a/lib9p/core.c +++ b/lib9p/core.c @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include <stdarg.h> /* for va_* */ -#include <string.h> /* for strlen(), strnlen(), strncpy(), memcmp(), memset() */ +#include <stdarg.h> /* for va_* */ +#include <string.h> /* for strlen(), strnlen(), strncpy(), memcmp(), memset() */ #include <libmisc/assert.h> /* for assert() */ #include <libmisc/endian.h> /* for uint32le_decode() */ @@ -103,11 +103,11 @@ const char *lib9p_msgtype_str(enum lib9p_version ver, enum lib9p_msg_type typ) { /* main message functions *****************************************************/ void fmt_print_lib9p_msg(lo_interface fmt_dest w, struct lib9p_ctx *ctx, enum lib9p_msg_type typ, void *body) { - assert(ctx); - assert_ver(ctx->version); - assert_typ(typ); - assert(_lib9p_table_msg[ctx->version][typ].print); - _lib9p_table_msg[ctx->version][typ].print(w, ctx, body); + assert(ctx); + assert_ver(ctx->version); + assert_typ(typ); + assert(_lib9p_table_msg[ctx->version][typ].print); + _lib9p_table_msg[ctx->version][typ].print(w, ctx, body); } #define _lib9p_validate(LOW_TYP_BIT, ERRMSG, TABLE) do { \ |