X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fmmap.c;h=e2ea6ff6a5dde5cefb5801ee009c5431201d4686;hb=6c475b0d66dff5ba9c12b3d1a3bbb16816ce3e2b;hp=43668bbcd9002434bc1546e86a154241e8a1585e;hpb=b19bb73905fd05a9388dbce5c44506412c4428ed;p=libucw.git diff --git a/lib/mmap.c b/lib/mmap.c index 43668bbc..e2ea6ff6 100644 --- a/lib/mmap.c +++ b/lib/mmap.c @@ -1,7 +1,10 @@ /* - * Sherlock Library -- Mapping of Files + * UCW Library -- Mapping of Files * * (c) 1999--2002 Martin Mares + * + * 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 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;