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.

Signed-off-by: Cyril Hrubis [email protected]

-- 
Cyril Hrubis
[email protected]
Index: ltp-full-20100228/testcases/kernel/containers/pidns/pidns17.c
===================================================================
--- ltp-full-20100228.orig/testcases/kernel/containers/pidns/pidns17.c
+++ ltp-full-20100228/testcases/kernel/containers/pidns/pidns17.c
@@ -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

Reply via email to