restorecond: use strict function prototype for definition

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 <cgzones@googlemail.com>
Reviewed-by: Daniel Burgener <dburgener@linux.microsoft.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Christian Göttsche 2022-08-08 19:36:20 +02:00 committed by James Carter
parent 2a9c619b5f
commit b5b3afbaed

View file

@ -169,7 +169,7 @@ io_channel_callback
return TRUE;
}
int start() {
int start(void) {
#ifdef HAVE_DBUS
GDBusConnection *bus;
GError *err = NULL;