* gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to

long type.
	(test_unlink): Correct printf string.
	* gdb.base/checkpoint.c (main): Correct fprintf string for variable i.
	* gdb.threads/attachstop-mt.c: Add #include <string.h>.
This commit is contained in:
Pierre Muller 2009-10-01 15:39:13 +00:00
parent 9f32dd5b5a
commit 209f53f524
4 changed files with 15 additions and 6 deletions

View file

@ -40,9 +40,9 @@ main()
for (i = 0; ; i++)
{
if (ftell (in) != i)
fprintf (stderr, "Input error at %d\n", i);
fprintf (stderr, "Input error at %ld\n", i);
if (ftell (out) != i)
fprintf (stderr, "Output error at %d\n", i);
fprintf (stderr, "Output error at %ld\n", i);
c = fgetc (in);
if (c == '\n')
lines++; /* breakpoint 1 */