From a99e18d00d2aebdb10b8e162525ecae5d107d493 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 2 Apr 2025 17:14:21 -0600 Subject: lib9p: Unify some tables --- lib9p/tables.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib9p/tables.c') diff --git a/lib9p/tables.c b/lib9p/tables.c index 7b46fb4..36fe3b3 100644 --- a/lib9p/tables.c +++ b/lib9p/tables.c @@ -31,18 +31,18 @@ static inline void assert_typ(enum lib9p_msg_type typ) { const char *lib9p_version_str(enum lib9p_version ver) { assert_ver(ver); - return _lib9p_table_ver_name[ver]; + return _lib9p_table_ver[ver].name; } uint32_t lib9p_version_min_msg_size(enum lib9p_version ver) { assert_ver(ver); - return _lib9p_table_msg_min_size[ver]; + return _lib9p_table_ver[ver].min_msg_size; } const char *lib9p_msgtype_str(enum lib9p_version ver, enum lib9p_msg_type typ) { assert_ver(ver); assert_typ(typ); - return _lib9p_table_msg_name[ver][typ] ?: const_byte_str(typ); + return _lib9p_table_msg[ver][typ].name ?: const_byte_str(typ); } /* main message functions *****************************************************/ -- cgit v1.2.3-2-g168b