Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-03-09 23:31:07 +0300
committerChristopher Faylor <me@cgf.cx>2003-03-09 23:31:07 +0300
commita113a3c540bc175afae325620f3537dbd61a8978 (patch)
tree0c2ed2ed60b9e06668f5703277a15c407a0d28d3 /winsup/cygwin/mmap.cc
parentc367dfd02c197b33e432f97d74351735f6242e12 (diff)
whitespace cleanup
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 27b525a39..accc739c0 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -123,7 +123,7 @@ mmap_record::alloc_map (__off64_t off, DWORD len)
off -= offset_;
len = PAGE_CNT (len) * getpagesize ();
if (off > 0 &&
- !VirtualProtect (base_address_, off, PAGE_NOACCESS, &old_prot))
+ !VirtualProtect (base_address_, off, PAGE_NOACCESS, &old_prot))
syscall_printf ("VirtualProtect(%x,%d) failed: %E", base_address_, off);
if (off + len < size_to_map_
&& !VirtualProtect (base_address_ + off + len,
@@ -143,7 +143,7 @@ mmap_record::map_map (__off64_t off, DWORD len)
{
/* Used ONLY if this mapping matches into the chunk of another already
performed mapping in a special case of MAP_ANON|MAP_PRIVATE.
-
+
Otherwise it's job is now done by alloc_map(). */
DWORD prot, old_prot;
switch (access_mode_)
@@ -771,11 +771,11 @@ fhandler_disk_file::mmap (caddr_t *addr, size_t len, DWORD access,
switch (access)
{
case FILE_MAP_WRITE:
- protect = PAGE_READWRITE;
- break;
+ protect = PAGE_READWRITE;
+ break;
case FILE_MAP_READ:
- protect = PAGE_READONLY;
- break;
+ protect = PAGE_READONLY;
+ break;
default:
protect = PAGE_WRITECOPY;
break;
@@ -989,7 +989,7 @@ fixup_mmaps_after_fork (HANDLE parent)
|| !wincap.virtual_protect_works_on_shared_pages ())
{
system_printf ("ReadProcessMemory failed for "
- "MAP_PRIVATE address %p, %E",
+ "MAP_PRIVATE address %p, %E",
rec->get_address ());
return -1;
}
@@ -1013,7 +1013,7 @@ fixup_mmaps_after_fork (HANDLE parent)
address, getpagesize (),
old_prot, &dummy_prot))
system_printf ("WARNING: VirtualProtectEx to "
- "return to previous state "
+ "return to previous state "
"in parent failed for "
"MAP_PRIVATE address %p, %E",
rec->get_address ());