summaryrefslogtreecommitdiff
path: root/lib9p/tables.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-02 17:14:21 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-02 18:42:37 -0600
commita99e18d00d2aebdb10b8e162525ecae5d107d493 (patch)
tree8226b5414ce6f013025372bd40753b88217970d1 /lib9p/tables.c
parent96158a421f78eab30a5cb38cdabfe0c3da63f4c3 (diff)
lib9p: Unify some tables
Diffstat (limited to 'lib9p/tables.c')
-rw-r--r--lib9p/tables.c6
1 files changed, 3 insertions, 3 deletions
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 *****************************************************/