[CRIU] [PATCH 13/23] apparmor test: fix for clang

Kir Kolyshkin kir at openvz.org
Tue Oct 11 18:46:51 PDT 2016


clang complains:
> apparmor.c:86:20: error: too many arguments in call to 'checkprofile' [-Werror]
>         if (checkprofile(0) == 0)
>             ~~~~~~~~~~~~  ^

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 test/zdtm/static/apparmor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/static/apparmor.c b/test/zdtm/static/apparmor.c
index 7af0be8..15930c7 100644
--- a/test/zdtm/static/apparmor.c
+++ b/test/zdtm/static/apparmor.c
@@ -83,7 +83,7 @@ int main(int argc, char **argv)
 	test_daemon();
 	test_waitsig();
 
-	if (checkprofile(0) == 0)
+	if (checkprofile() == 0)
 		pass();
 
 	return 0;
-- 
2.7.4



More information about the CRIU mailing list