~bkerensa/ubuntu/raring/valgrind/merge-from-deb

« back to all changes in this revision

Viewing changes to tests/toobig-allocs.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrés Roldán
  • Date: 2008-06-13 02:31:40 UTC
  • mto: (1.4.1 upstream) (2.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: james.westby@ubuntu.com-20080613023140-iwk33rz9rhvfkr96
Import upstream version 3.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
   fprintf(stderr, "Attempting too-big mmap()...\n");
21
21
   p = mmap( 0, size, PROT_READ|PROT_WRITE|PROT_EXEC,
22
22
             MAP_PRIVATE|MAP_ANON, -1, 0 );
23
 
   if (-1 != (int)p)
 
23
   if (-1 != (long)p)
24
24
      fprintf(stderr, "huge mmap() succeeded??\n");
25
25
 
26
26
   return 0;