* [LTP] warning when building pread01.c
@ 2010-08-16 18:24 David Marlin
0 siblings, 0 replies; only message in thread
From: David Marlin @ 2010-08-16 18:24 UTC (permalink / raw)
To: LTP list
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]
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 <dmarlin@redhat.com>
[-- Attachment #2: pread01.c.patch --]
[-- Type: text/x-patch, Size: 395 bytes --]
--- 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");
}
[-- Attachment #3: Type: text/plain, Size: 224 bytes --]
------------------------------------------------------------------------------
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
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-16 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-16 18:24 [LTP] warning when building pread01.c David Marlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox