Function compare_bufers in pread01.c does not expect any arguments, but the reference to compare_bufers passes two arguments:

    compare_bufers(write_buf, read_buf);


Within the function compare_bufers, write_buf and read_buf are accessed via their global definitions. These variables are also accessed via the global definitions in other functions in this testcase.

Attached is a patch to remove the unnecessary arguments from the compare_bufers function reference.


Signed-off-by: d.marlin <[email protected]>


--- testcases/kernel/syscalls/pread/pread01.c.orig	2010-04-01 01:23:10.000000000 -0500
+++ testcases/kernel/syscalls/pread/pread01.c	2010-07-07 19:07:30.375647906 -0500
@@ -183,7 +183,7 @@
 			 * with the data written to write buffer
 			 * in the setup.
 			 */
-			compare_bufers(write_buf, read_buf);
+			compare_bufers();
 		} else {
 			tst_resm(TPASS, "calls to pread() succeeded");
 		}

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to