From 81fd29ce8ca69a25da8aadf1dd172ede5974de40 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Fri, 17 Apr 2015 14:45:12 +0200 Subject: [PATCH] Style fixes in mmap --- mmap.h | 4 ++-- mmap_win32.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mmap.h b/mmap.h index 789fd448d..1e226e83f 100644 --- a/mmap.h +++ b/mmap.h @@ -38,8 +38,8 @@ #define MAP_ANON MAP_ANONYMOUS #define MAP_FAILED ((void *) -1) -void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset); -void munmap(void *addr, size_t length); +void* mmap(void* start, size_t length, int prot, int flags, int fd, off_t offset); +void munmap(void* addr, size_t length); #else // posix, yay! ^_^ #include #endif diff --git a/mmap_win32.c b/mmap_win32.c index 881249d14..42968b98a 100644 --- a/mmap_win32.c +++ b/mmap_win32.c @@ -23,7 +23,7 @@ # define DWORD_LO(x) (x) #endif -void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) +void* mmap(void* start, size_t length, int prot, int flags, int fd, off_t offset) { if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) return MAP_FAILED; @@ -75,7 +75,7 @@ void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset return ret; } -void munmap(void *addr, size_t length) +void munmap(void* addr, size_t length) { UnmapViewOfFile(addr); }