diff options
author | Doug Bailey <dbailey@digium.com> | 2009-04-20 19:28:16 +0000 |
---|---|---|
committer | Doug Bailey <dbailey@digium.com> | 2009-04-20 19:28:16 +0000 |
commit | 9c2ff7bb1e5f7d80e273653e06b85a6cb69ef086 (patch) | |
tree | b1ce940e024c4d369b0c73870b62ebbfc0850f79 /main/db1-ast | |
parent | b5b18b781025872e066b5244951365e657b7d41c (diff) |
Merged revisions 189391 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r189391 | dbailey | 2009-04-20 14:10:56 -0500 (Mon, 20 Apr 2009) | 4 lines
Clean up problem with manager implementation of mmap where it was not testing against MAP_FAILED response.
Got rid of shadowed variable used in processign the mmap results.
Change test of mmap results to compare against MAP_FAILED
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@189419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/db1-ast')
-rw-r--r-- | main/db1-ast/recno/rec_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/db1-ast/recno/rec_open.c b/main/db1-ast/recno/rec_open.c index 0ebc8c7c4..0fb08258c 100644 --- a/main/db1-ast/recno/rec_open.c +++ b/main/db1-ast/recno/rec_open.c @@ -169,7 +169,7 @@ slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) t->bt_msize = sb.st_size; if ((t->bt_smap = mmap(NULL, t->bt_msize, PROT_READ, MAP_PRIVATE, rfd, - (off_t)0)) == (caddr_t)-1) + (off_t)0)) == MAP_FAILED goto slow; t->bt_cmap = t->bt_smap; t->bt_emap = t->bt_smap + sb.st_size; |