Remove unnecessary mmap flag

(Closes issue #13161)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@133709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-07-25 18:00:33 +00:00
parent c5b4e1aec8
commit 8e0165bb17

View File

@@ -1456,7 +1456,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
fdlen = lseek(fd, 0, SEEK_END); fdlen = lseek(fd, 0, SEEK_END);
lseek(fd, 0, SEEK_SET); lseek(fd, 0, SEEK_SET);
printf("Length is %zd\n", fdlen); printf("Length is %zd\n", fdlen);
fdm = mmap(NULL, fdlen, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_32BIT, fd, 0); fdm = mmap(NULL, fdlen, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
if (fdm == MAP_FAILED) { if (fdm == MAP_FAILED) {
ast_log(LOG_WARNING, "Memory map failed!\n"); ast_log(LOG_WARNING, "Memory map failed!\n");
ast_odbc_release_obj(obj); ast_odbc_release_obj(obj);