aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2009-10-01 15:39:13 +0000
committerPierre Muller <muller@sourceware.org>2009-10-01 15:39:13 +0000
commit209f53f5248aa219cad6261bdd6622c804c485e9 (patch)
tree39c913ffec07d37954d444ff2588edd8b24dbaeb /gdb/testsuite/gdb.base/checkpoint.c
parent2009-10-01 H.J. Lu <hongjiu.lu@intel.com> (diff)
downloadbinutils-gdb-209f53f5248aa219cad6261bdd6622c804c485e9.tar.gz
binutils-gdb-209f53f5248aa219cad6261bdd6622c804c485e9.tar.bz2
binutils-gdb-209f53f5248aa219cad6261bdd6622c804c485e9.zip
* 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>.
Diffstat (limited to 'gdb/testsuite/gdb.base/checkpoint.c')
-rw-r--r--gdb/testsuite/gdb.base/checkpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/checkpoint.c b/gdb/testsuite/gdb.base/checkpoint.c
index 4a412684fe2..2d44a741504 100644
--- a/gdb/testsuite/gdb.base/checkpoint.c
+++ b/gdb/testsuite/gdb.base/checkpoint.c
@@ -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 */