]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mmap.c
libucw: added several const qualifiers
[libucw.git] / lib / mmap.c
index aa63622259d50034fce4b774dc600c92dcf1828b..e2ea6ff6a5dde5cefb5801ee009c5431201d4686 100644 (file)
@@ -16,7 +16,7 @@
 #include <sys/mman.h>
 
 void *
-mmap_file(byte *name, unsigned *len, int writeable)
+mmap_file(const byte *name, unsigned *len, int writeable)
 {
   int fd = open(name, writeable ? O_RDWR : O_RDONLY);
   struct stat st;