Fix extraneous cast
This commit is contained in:
parent
cb71ec84ea
commit
2923d314ca
@ -141,7 +141,7 @@ init_wlog (void)
|
|||||||
|
|
||||||
/* mmap anywhere in address space: */
|
/* mmap anywhere in address space: */
|
||||||
fbase = (char *) mmap (0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
fbase = (char *) mmap (0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
||||||
if (fbase == (char *) 0 - 1)
|
if (fbase == (char *) -1)
|
||||||
panic ("%s: can't mmap the file: %s\n", prog_name, strerror (errno));
|
panic ("%s: can't mmap the file: %s\n", prog_name, strerror (errno));
|
||||||
|
|
||||||
close (fd);
|
close (fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user