sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit bc13aa59607802efdd96efa6cd4a3c0803287122
parent 9ad06c3aefa8f5055608fab2ea82b6648562fed3
Author: sin <sin@2f30.org>
Date:   Sat, 12 Apr 2014 20:32:39 +0100

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

Diffstat:
Mtr.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tr.c b/tr.c @@ -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:");