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 333A942EF61 for ; Fri, 3 Jul 2020 17:46:05 +0300 (MSK) Received: by mail-lf1-f65.google.com with SMTP id y13so18629598lfe.9 for ; Fri, 03 Jul 2020 07:46:05 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:07 +0300 Message-Id: <20200703144526.522358-4-gorcunov@gmail.com> In-Reply-To: <20200703144526.522358-1-gorcunov@gmail.com> References: <20200703144526.522358-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 03/22] title: use void for empty args List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml Cc: Alexander Turenko Part-of #4718 Signed-off-by: Cyrill Gorcunov --- src/title.c | 4 ++-- src/title.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/title.c b/src/title.c index e07ced779..686557c0b 100644 --- a/src/title.c +++ b/src/title.c @@ -72,7 +72,7 @@ void title_free(int argc, char **argv) proc_title_free(argc, argv); } -const char *title_get() +const char *title_get(void) { return title_buf; } @@ -99,7 +99,7 @@ my_basename(const char *name) return name; } -void title_update() +void title_update(void) { if (title_buf == NULL || title_buf_size == 0) return; diff --git a/src/title.h b/src/title.h index 8754d8a55..0c8f05542 100644 --- a/src/title.h +++ b/src/title.h @@ -76,10 +76,10 @@ char **title_init(int argc, char **argv); void title_free(int argc, char **argv); /** generate and update process title */ -void title_update(); +void title_update(void); /** query current title */ -const char *title_get(); +const char *title_get(void); /* parts: invoke title_update() to propagate changes */ -- 2.26.2