Remove useless variable "mapbase" from screencap

The variable "mapbase" is not really used and we should remove it from screencap

Test: make screencap

Change-Id: Id17b6f440d3ab42f1c54fe90065eac50e0190f01
Signed-off-by: viktor <tomjhin1@gmail.com>
This commit is contained in:
viktor
2023-07-01 13:55:18 +08:00
committed by Jhin Tom
parent 2c86cec3ca
commit 646dc1fe78

View File

@@ -173,9 +173,6 @@ int main(int argc, char** argv)
return 1;
}
void const* mapbase = MAP_FAILED;
ssize_t mapsize = -1;
void* base = NULL;
// setThreadPoolMaxThreadCount(0) actually tells the kernel it's
@@ -255,9 +252,6 @@ int main(int argc, char** argv)
}
}
close(fd);
if (mapbase != MAP_FAILED) {
munmap((void *)mapbase, mapsize);
}
return 0;
}