]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove unnecessary mmap flag
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 25 Jul 2008 18:00:33 +0000 (18:00 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 25 Jul 2008 18:00:33 +0000 (18:00 +0000)
(Closes issue #13161)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@133709 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 9773dd37329d4c6d705f98ad87bc5130d846a47b..cf71c5f8a7d00280053c32fb8f2f6a5d28c48ca3 100644 (file)
@@ -1456,7 +1456,7 @@ static int store_file(char *dir, char *mailboxuser, char *mailboxcontext, int ms
                fdlen = lseek(fd, 0, SEEK_END);
                lseek(fd, 0, SEEK_SET);
                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) {
                        ast_log(LOG_WARNING, "Memory map failed!\n");
                        ast_odbc_release_obj(obj);