summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-11 23:46:06 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-01-11 23:47:00 +0100
commit2b62126aea6770ac7986a1b5d417379ad316ace6 (patch)
treebc18591b4ac57f33782d1559994ef1cf6169a626 /htop.c
parent960f52b78357dad25e36f624dfbff91e4c6b4bc2 (diff)
Mark several non-modified pointer variables const
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index ff5dc875..82ba8bc2 100644
--- a/htop.c
+++ b/htop.c
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy