X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmmap.c;h=928da4bc176266a694276f93aa102801e4014e08;hb=dc63fe59d2bb4c3eb8be67790a55069c8c0a46a9;hp=43668bbcd9002434bc1546e86a154241e8a1585e;hpb=b19bb73905fd05a9388dbce5c44506412c4428ed;p=libucw.git diff --git a/lib/mmap.c b/lib/mmap.c index 43668bbc..928da4bc 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 char *name, unsigned *len, int writeable) { int fd = open(name, writeable ? O_RDWR : O_RDONLY); struct stat st;