Skip to contentSkip to conversation

warning when building pread01.c

LTP David Marlin 1 participant 1 message Aug 16, 2010

lore
Share & tools
lore
#0 lore raw

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.

kernel/syscalls/pread/pread01.c renamed from kernel/syscalls/pread/pread01.c.orig +1 -1
@@ -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