diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-11 23:46:06 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-01-11 23:47:00 +0100 |
commit | 2b62126aea6770ac7986a1b5d417379ad316ace6 (patch) | |
tree | bc18591b4ac57f33782d1559994ef1cf6169a626 /htop.c | |
parent | 960f52b78357dad25e36f624dfbff91e4c6b4bc2 (diff) |
Mark several non-modified pointer variables const
Diffstat (limited to 'htop.c')
-rw-r--r-- | htop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |