projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gdb/testsuite: check mmap ret val against MAP_FAILED
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
coremaker.c
diff --git
a/gdb/testsuite/gdb.base/coremaker.c
b/gdb/testsuite/gdb.base/coremaker.c
index 55330fd3e8a4fa56bfc024de1e75e3423e1370cf..3cc97e1e8e5931dfdfd49cf718a780b4693dfafd 100644
(file)
--- a/
gdb/testsuite/gdb.base/coremaker.c
+++ b/
gdb/testsuite/gdb.base/coremaker.c
@@
-77,7
+77,7
@@
mmapdata ()
/* Now map the file into our address space as buf2 */
buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
- if (buf2 == (char *)
-1
)
+ if (buf2 == (char *)
MAP_FAILED
)
{
perror ("mmap failed");
return;
This page took
0.023325 seconds
and
4
git commands to generate.