Skip to content

Commit b5b3afb

Browse files
cgzonesjwcart2
authored andcommitted
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 <[email protected]> Reviewed-by: Daniel Burgener <[email protected]> Acked-by: James Carter <[email protected]>
1 parent 2a9c619 commit b5b3afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restorecond/user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ io_channel_callback
169169
return TRUE;
170170
}
171171

172-
int start() {
172+
int start(void) {
173173
#ifdef HAVE_DBUS
174174
GDBusConnection *bus;
175175
GError *err = NULL;

0 commit comments

Comments
 (0)