IMA: fix non-ANSI declaration of ima_check_policy()

ima_check_policy() has no parameters, so use the normal void
parameter convention to make it match the prototype in the header file
security/integrity/ima/ima.h

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
This commit is contained in:
Colin Ian King 2016-01-20 11:13:46 +00:00 • committed by Mimi Zohar
commit c75d8e96f3

View file

@ -417,7 +417,7 @@ void __init ima_init_policy(void)
}
/* Make sure we have a valid policy, at least containing some rules. */
int ima_check_policy()
int ima_check_policy(void)
{
if (list_empty(&ima_temp_rules))
return -EINVAL;