userns06_capcheck: Fix build on some distros
PATCH 1/1 userns06_capcheck: Fix build on some distros
The build fails on some distros because they compile with -Werror=return-type
Fixes f57e28cfb19 ("Rewrite userns06.c using new LTP API")
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/containers/userns/userns06_capcheck.c | 4 ++++ 1 file changed, 4 insertions(+)
testcases/kernel/containers/userns/userns06_capcheck.c +4 -0
@@ -53,6 +53,8 @@ int main(int argc, char *argv[])tst_res (TFAIL ,"unexpected effective/permitted caps at %d" , i); else tst_res(TPASS, "expected caps at %d", i); + + return 0; }#else
@@ -61,5 +63,7 @@ int main(void)tst_reinit ();tst_brk (TCONF ,"System is missing libcap" ); + + return 0; }#endif
Signature · 5 lines
2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp