Hi,
this problem has been forgotten for some time
but it still makes trouble with too strict buildsystems.

See attached patch that also fixes minor style problems.

Signed-off-by: [email protected]

-- 
Cyril Hrubis
[email protected]
Index: ltp-full-20090731/testcases/kernel/io/aio/aio01/aio01.c
===================================================================
--- ltp-full-20090731.orig/testcases/kernel/io/aio/aio01/aio01.c
+++ ltp-full-20090731/testcases/kernel/io/aio/aio01/aio01.c
@@ -68,9 +68,9 @@ int TST_TOTAL=6;
 #include <sys/time.h>
 #include <sys/resource.h>
 
-void help();
-void setup();
-void cleanup();
+static void help(void);
+static void setup(void);
+static void cleanup(void);
 
 #define mapsize (1 << 14)
 
@@ -96,7 +96,8 @@ struct test_case_t {
 	{0, "ftruncate mmaped file to 0 size"},
 };
 
-int main(int argc, char **argv) {
+int main(int argc, char **argv)
+{
 	int i, j, sec, usec;
 	int failflag=0;
 	int bflag=0, nflag=0, Fflag=0;
@@ -364,13 +365,15 @@ int main(int argc, char **argv) {
 	return 0;
 }
 
-void help() {
+static void help(void)
+{
 	printf("  -b n    Buffersize\n");
 	printf("  -n n    Number of requests\n");
 	printf("  -F s    Filename to run the tests against\n");
 }
 
-void setup() {
+static void setup(void)
+{
 	int ret;
 
 	tst_sig(NOFORK, DEF_HANDLER, cleanup);
@@ -411,7 +414,7 @@ void setup() {
 				strerror(ret));
 }
 
-void cleanup() {
+static void cleanup(void) {
 	TEST_CLEANUP;
 	free(dstbuf);
 	free(srcbuf);
@@ -427,7 +430,8 @@ void cleanup() {
 
 int main(void)
 {
-  tst_brkm(TCONF, tst_exit, "libaio missing");
+  tst_resm(TCONF, "libaio missing");
+  tst_exit();
 }
 
 #endif
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to