Skip to content
Snippets Groups Projects
Commit a2e34240 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Kirill Yukhin
Browse files

box/console: console_session_vtab -- use designated initialization


For better maintainance.

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 15b34012
No related branches found
No related tags found
No related merge requests found
......@@ -582,9 +582,9 @@ tarantool_lua_console_init(struct lua_State *L)
*/
lua_setfield(L, -2, "formatter");
struct session_vtab console_session_vtab = {
/* .push = */ console_session_push,
/* .fd = */ console_session_fd,
/* .sync = */ generic_session_sync,
.push = console_session_push,
.fd = console_session_fd,
.sync = generic_session_sync,
};
session_vtab_registry[SESSION_TYPE_CONSOLE] = console_session_vtab;
session_vtab_registry[SESSION_TYPE_REPL] = console_session_vtab;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment