/*
- * 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"
#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;