add missing return into pidns17.c
PATCH 1/1 add missing return into pidns17.c
Hi!
Following patch adds return 0; at the end of main() in the pidns17.c (and also removes some spurious code comments). This patch fixes compiler warning which some builds systems treats as error and thuss breaks package building.
Signature · 2 lines
Cyril Hrubis [email protected]
testcases/kernel/containers/pidns/pidns17.c +3 -3
@@ -141,7 +141,9 @@ int main(int argc, char *argv[])/* cleanup and exit */ CLEANUP (); -}/* End main */ + +return 0 ; +}/* * cleanup() - performs all ONE TIME cleanup for this test at
@@ -149,8 +151,6 @@ int main(int argc, char *argv[])*/ void cleanup () { -/* Clean the test testcase as LTP wants*/ TEST_CLEANUP ;tst_exit (); -/* NOTREACHED */ }
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 3 lines
Following patch adds return 0; at the end of
main()in thepidns17.c(and also removes some spurious code comments). This patch fixes compiler warning which some builds systems treats as error and thuss breaks package building.
Uff, there is one more missing return in child_fn(), please apply this patch.
Signature · 2 lines
Cyril Hrubis [email protected]
testcases/kernel/containers/pidns/pidns17.c +5 -3
@@ -111,6 +111,8 @@ int child_fn(void *arg)/* cleanup and exit */ CLEANUP (); + +return 0 ; }/***********************************************************************
@@ -141,7 +143,9 @@ int main(int argc, char *argv[])/* cleanup and exit */ CLEANUP (); -}/* End main */ + +return 0 ; +}/* * cleanup() - performs all ONE TIME cleanup for this test at
@@ -149,8 +153,6 @@ int main(int argc, char *argv[])*/ void cleanup () { -/* Clean the test testcase as LTP wants*/ TEST_CLEANUP ;tst_exit (); -/* NOTREACHED */ }
------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list