Browse Source

map mmap_read return a const char*

master
Felix von Leitner 6 years ago
parent
commit
cfa3f1ff5a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mmap.h
  2. +1
    -1
      mmap/mmap_read.c

+ 1
- 1
mmap.h View File

@@ -10,7 +10,7 @@ extern "C" {

/* open file for reading, mmap whole file, close file, write length of
* map in filesize and return pointer to map. */
char* mmap_read(const char *filename,size_t* filesize);
const char* mmap_read(const char *filename,size_t* filesize);

/* open file for writing, mmap whole file privately (copy on write),
* close file, write length of map in filesize and return pointer to


+ 1
- 1
mmap/mmap_read.c View File

@@ -8,7 +8,7 @@
#include "open.h"
#include "mmap.h"

extern char* mmap_read(const char* filename,size_t * filesize) {
extern const char* mmap_read(const char* filename,size_t * filesize) {
#ifdef __MINGW32__
HANDLE fd,m;
char* map;


Loading…
Cancel
Save