From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 4E962469710 for ; Tue, 12 May 2020 16:51:11 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id a9so10614439lfb.8 for ; Tue, 12 May 2020 06:51:11 -0700 (PDT) From: Cyrill Gorcunov Date: Tue, 12 May 2020 16:50:46 +0300 Message-Id: <20200512135052.221379-2-gorcunov@gmail.com> In-Reply-To: <20200512135052.221379-1-gorcunov@gmail.com> References: <20200512135052.221379-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 1/7] box/console: console_session_vtab -- use designated initialization List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml For better maintainance. Signed-off-by: Cyrill Gorcunov --- src/box/lua/console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/box/lua/console.c b/src/box/lua/console.c index b941f50c6..d937d684e 100644 --- a/src/box/lua/console.c +++ b/src/box/lua/console.c @@ -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; -- 2.26.2