No need to cast return value of mmap() in tr

This commit is contained in:
sin 2014-04-12 20:32:39 +01:00
parent 9ad06c3aef
commit bc13aa5960

4
tr.c
View File

@ -121,8 +121,8 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
mappings = (wchar_t *)mmap(NULL, 0x110000 * sizeof(wchar_t),
PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0);
mappings = mmap(NULL, 0x110000 * sizeof(wchar_t),
PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0);
if (mappings == MAP_FAILED)
eprintf("mmap:");