Hold only a const version of Settings in ProcessList

This commit is contained in:
Christian Göttsche
2020-10-21 21:26:09 +02:00
committed by cgzones
parent 4eb443926f
commit a3bb7cbe64
8 changed files with 22 additions and 18 deletions

View File

@ -936,7 +936,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char*
ProcessList* pl = (ProcessList*) this;
DIR* dir;
struct dirent* entry;
Settings* settings = pl->settings;
const Settings* settings = pl->settings;
#ifdef HAVE_TASKSTATS
unsigned long long now = tv.tv_sec*1000LL+tv.tv_usec/1000LL;