mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-02 16:30:36 +00:00
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:
parent
2a9c619b5f
commit
b5b3afbaed
@ -169,7 +169,7 @@ io_channel_callback
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int start() {
|
||||
int start(void) {
|
||||
#ifdef HAVE_DBUS
|
||||
GDBusConnection *bus;
|
||||
GError *err = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user