From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D59B62E6CA for ; Mon, 10 Jun 2019 09:57:11 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0uE6LTXPnoyV for ; Mon, 10 Jun 2019 09:57:11 -0400 (EDT) Received: from smtp18.mail.ru (smtp18.mail.ru [94.100.176.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 8E1CB2E6C7 for ; Mon, 10 Jun 2019 09:57:11 -0400 (EDT) From: imeevma@tarantool.org Subject: [tarantool-patches] [PATCH v1 27/28] sql: make function return void instead of int Date: Mon, 10 Jun 2019 16:57:09 +0300 Message-Id: <4be7888ba0c4e2726d477417a9245dbe359cdc58.1560174553.git.imeevma@gmail.com> In-Reply-To: References: Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: v.shpilevoy@tarantool.org Cc: tarantool-patches@freelists.org Function tarantoolsqlEphemeralDrop() always returns 0. Let's make it return void to make code clean. --- src/box/sql.c | 4 ++-- src/box/sql/tarantoolInt.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/box/sql.c b/src/box/sql.c index d8c7d91..a0350da 100644 --- a/src/box/sql.c +++ b/src/box/sql.c @@ -386,13 +386,13 @@ int tarantoolsqlEphemeralInsert(struct space *space, const char *tuple, } /* Simply delete ephemeral space by calling space_delete(). */ -int tarantoolsqlEphemeralDrop(BtCursor *pCur) +void +tarantoolsqlEphemeralDrop(BtCursor *pCur) { assert(pCur); assert(pCur->curFlags & BTCF_TEphemCursor); space_delete(pCur->space); pCur->space = NULL; - return 0; } static inline int diff --git a/src/box/sql/tarantoolInt.h b/src/box/sql/tarantoolInt.h index e166045..1ded6c7 100644 --- a/src/box/sql/tarantoolInt.h +++ b/src/box/sql/tarantoolInt.h @@ -89,7 +89,9 @@ int tarantoolsqlEphemeralInsert(struct space *space, const char *tuple, int tarantoolsqlEphemeralDelete(BtCursor * pCur); int64_t tarantoolsqlEphemeralCount(struct BtCursor *pCur); -int tarantoolsqlEphemeralDrop(BtCursor * pCur); +void +tarantoolsqlEphemeralDrop(BtCursor * pCur); + int tarantoolsqlEphemeralClearTable(BtCursor * pCur); /** -- 2.7.4