From 9fc22be9383b579130d128d9a0ef5c60e48b75ce Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 1 Jun 2015 17:07:00 +0300 Subject: [PATCH] Fix antique style declarations in lsm.[ch] Otherwise we eventually get compiler warnings, ending up with the build abort. Signed-off-by: Takashi Iwai Signed-off-by: Pavel Emelyanov --- include/lsm.h | 6 +++--- lsm.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/lsm.h b/include/lsm.h index 05737ffbd..1409acd1f 100644 --- a/include/lsm.h +++ b/include/lsm.h @@ -7,12 +7,12 @@ /* * Get the Lsmtype for the current host. */ -extern Lsmtype host_lsm_type(); +extern Lsmtype host_lsm_type(void); /* * Initilize the Lsmtype for the current host */ -extern void kerndat_lsm(); +extern void kerndat_lsm(void); /* * Read the LSM profile for the pstree item @@ -23,7 +23,7 @@ extern int collect_lsm_profile(pid_t, CredsEntry *); * Validate that the LSM profiles can be correctly applied (must happen after * pstree is set up). */ -extern int validate_lsm(); +int validate_lsm(CredsEntry *ce); /* * Render the profile name in the way that the LSM wants it written to diff --git a/lsm.c b/lsm.c index 5acaa4244..40d12ba43 100644 --- a/lsm.c +++ b/lsm.c @@ -102,7 +102,7 @@ static int selinux_get_label(pid_t pid, char **output) } #endif -void kerndat_lsm() +void kerndat_lsm(void) { if (access("/sys/kernel/security/apparmor", F_OK) == 0) { get_label = apparmor_get_label; @@ -130,7 +130,7 @@ void kerndat_lsm() name = "none"; } -Lsmtype host_lsm_type() +Lsmtype host_lsm_type(void) { return lsmtype; }