diff options
Diffstat (limited to 'lib9p/tables.c')
-rw-r--r-- | lib9p/tables.c | 6 |
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 *****************************************************/ |