Mark several non-modified pointer variables const

This commit is contained in:
Christian Göttsche
2021-01-11 23:46:06 +01:00
parent 960f52b783
commit 2b62126aea
4 changed files with 4 additions and 4 deletions

2
htop.c
View File

@ -215,7 +215,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
assert(optarg); /* please clang analyzer, cause optarg can be NULL in the 'u' case */
char* argCopy = xStrdup(optarg);
char* saveptr;
char* pid = strtok_r(argCopy, ",", &saveptr);
const char* pid = strtok_r(argCopy, ",", &saveptr);
if(!flags.pidMatchList) {
flags.pidMatchList = Hashtable_new(8, false);