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

2
tr.c
View File

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