From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f65.google.com (mail-lf1-f65.google.com [209.85.167.65]) (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 AFC1D469710 for ; Fri, 8 May 2020 14:47:30 +0300 (MSK) Received: by mail-lf1-f65.google.com with SMTP id d25so1157744lfi.11 for ; Fri, 08 May 2020 04:47:30 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 8 May 2020 14:47:08 +0300 Message-Id: <20200508114714.426908-2-gorcunov@gmail.com> In-Reply-To: <20200508114714.426908-1-gorcunov@gmail.com> References: <20200508114714.426908-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