From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) (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 1BB6142EF60 for ; Fri, 3 Jul 2020 17:46:28 +0300 (MSK) Received: by mail-lf1-f66.google.com with SMTP id k17so5856070lfg.3 for ; Fri, 03 Jul 2020 07:46:28 -0700 (PDT) From: Cyrill Gorcunov Date: Fri, 3 Jul 2020 17:45:09 +0300 Message-Id: <20200703144526.522358-6-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 05/22] systemd: 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/systemd.c | 4 ++-- src/systemd.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/systemd.c b/src/systemd.c index c80259f06..2463a9dc9 100644 --- a/src/systemd.c +++ b/src/systemd.c @@ -50,7 +50,7 @@ static int systemd_fd = -1; static const char *sd_unix_path = NULL; -int systemd_init() { +int systemd_init(void) { sd_unix_path = getenv("NOTIFY_SOCKET"); if (sd_unix_path == NULL) { /* Do nothing if the path is not set. */ @@ -104,7 +104,7 @@ int systemd_init() { return -1; } -void systemd_free() { +void systemd_free(void) { if (systemd_fd > 0) close(systemd_fd); } diff --git a/src/systemd.h b/src/systemd.h index 861a9af35..7319096d6 100644 --- a/src/systemd.h +++ b/src/systemd.h @@ -49,13 +49,13 @@ extern "C" { * \return 0 on sucess */ int -systemd_init(); +systemd_init(void); /** * Close connection with systemd daemon */ void -systemd_free(); +systemd_free(void); /** * Send message to systemd -- 2.26.2