]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mmap.c
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git#v3.11
[libucw.git] / lib / mmap.c
index 43668bbcd9002434bc1546e86a154241e8a1585e..928da4bc176266a694276f93aa102801e4014e08 100644 (file)
@@ -1,7 +1,10 @@
 /*
- *     Sherlock Library -- Mapping of Files
+ *     UCW Library -- Mapping of Files
  *
  *     (c) 1999--2002 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -13,7 +16,7 @@
 #include <sys/mman.h>
 
 void *
-mmap_file(byte *name, unsigned *len, int writeable)
+mmap_file(const char *name, unsigned *len, int writeable)
 {
   int fd = open(name, writeable ? O_RDWR : O_RDONLY);
   struct stat st;