From b5b3afbaed29895d37f6160cc0847ef5de7538ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 8 Aug 2022 19:36:20 +0200 Subject: [PATCH] restorecond: use strict function prototype for definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clang 15 starts to complain about non strict function definitions: user.c:172:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int start() { ^ void Signed-off-by: Christian Göttsche Reviewed-by: Daniel Burgener Acked-by: James Carter --- restorecond/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restorecond/user.c b/restorecond/user.c index 47b86823..3ae3ebbb 100644 --- a/restorecond/user.c +++ b/restorecond/user.c @@ -169,7 +169,7 @@ io_channel_callback return TRUE; } -int start() { +int start(void) { #ifdef HAVE_DBUS GDBusConnection *bus; GError *err = NULL;