mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user