From 2b62126aea6770ac7986a1b5d417379ad316ace6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 11 Jan 2021 23:46:06 +0100 Subject: Mark several non-modified pointer variables const --- htop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'htop.c') 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); -- cgit v1.2.3