diff options
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r-- | intern/guardedalloc/intern/mallocn.c | 14 | ||||
-rw-r--r-- | intern/guardedalloc/test/simpletest/memtest.c | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/intern/guardedalloc/intern/mallocn.c b/intern/guardedalloc/intern/mallocn.c index caf551c84d8..55340d6011d 100644 --- a/intern/guardedalloc/intern/mallocn.c +++ b/intern/guardedalloc/intern/mallocn.c @@ -369,16 +369,16 @@ void *MEM_mapallocN(size_t len, const char *str) { #include <fcntl.h> - int fd; - fd = open("/dev/zero", O_RDWR); + int fd; + fd = open("/dev/zero", O_RDWR); - memh= mmap(0, len+sizeof(MemHead)+sizeof(MemTail), - PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); - close(fd); + memh= mmap(0, len+sizeof(MemHead)+sizeof(MemTail), + PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); + close(fd); } #else memh= mmap(NULL, len+sizeof(MemHead)+sizeof(MemTail), - PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0); + PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANON, -1, 0); #endif if(memh!=(MemHead *)-1) { @@ -792,7 +792,7 @@ static const char *check_memlist(MemHead *memh) forwok->nextname = backok->name; } else{ forwok->next = NULL; - membase->last = (struct localLink *) &forwok->next; + membase->last = (struct localLink *) &forwok->next; /* membase->last = (struct Link *) &forwok->next; */ } } else{ diff --git a/intern/guardedalloc/test/simpletest/memtest.c b/intern/guardedalloc/test/simpletest/memtest.c index 98f943f0d7d..6b3af8b310c 100644 --- a/intern/guardedalloc/test/simpletest/memtest.c +++ b/intern/guardedalloc/test/simpletest/memtest.c @@ -60,7 +60,7 @@ int main (int argc, char *argv[]) int i = 0; /* ----------------------------------------------------------------- */ - switch (argc) { + switch (argc) { case 2: verbose = atoi(argv[1]); if (verbose < 0) verbose = 0; |