IMA: fix non-ANSI declaration of ima_check_policy()
authorColin Ian King <colin.king@canonical.com>
Wed, 20 Jan 2016 11:13:46 +0000 (11:13 +0000)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 8 Feb 2016 23:17:38 +0000 (18:17 -0500)
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 <colin.king@canonical.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_policy.c

index 0a3b781..e0e18cc 100644 (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;