OSDN Git Service

* mmap.cc (mmap64): Make granularity an automatic variable.
authorcorinna <corinna>
Thu, 19 May 2005 08:43:11 +0000 (08:43 +0000)
committercorinna <corinna>
Thu, 19 May 2005 08:43:11 +0000 (08:43 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/mmap.cc

index e61c43f..a0c7fb4 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-19  Corinna Vinschen  <corinna@vinschen.de>
+
+       * mmap.cc (mmap64): Make granularity an automatic variable.
+
 2005-05-19  Christopher Faylor  <cgf@timesys.com>
 
        * fhandler.h (fhandler_cygdrive::seekdir): Delete declaration.
index ec4e3c2..a3c5f13 100644 (file)
@@ -506,7 +506,7 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off)
   syscall_printf ("addr %x, len %u, prot %x, flags %x, fd %d, off %D",
                  addr, len, prot, flags, fd, off);
 
-  static DWORD granularity = getshmlba ();
+  DWORD granularity = getshmlba ();
 
   /* Error conditions according to SUSv2 */
   if (off % getpagesize ()