summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-08-24 18:05:58 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-08-24 18:39:00 -0300
commite9f95da5599a3ea96663e391ad21bb002fede01d (patch)
tree329f50a667e372fb87ccd23b86a4ada212741963
parent5a0a4e1adb37daca1ed52f15be19bd032b190a71 (diff)
Linux: remove warnings of unused variables
-rw-r--r--linux/LinuxProcessList.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index 28736977..f599699e 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -377,7 +377,7 @@ static bool LinuxProcessList_readStatFile(Process *process, const char* dirname,
}
-static bool LinuxProcessList_statProcessDir(Process* process, const char* dirname, char* name, time_t curTime) {
+static bool LinuxProcessList_statProcessDir(Process* process, const char* dirname, char* name) {
char filename[MAX_NAME+1];
filename[MAX_NAME] = '\0';
@@ -837,7 +837,6 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char*
Settings* settings = pl->settings;
ScreenSettings* ss = settings->ss;
- time_t curTime = tv.tv_sec;
#ifdef HAVE_TASKSTATS
unsigned long long now = tv.tv_sec*1000LL+tv.tv_usec/1000LL;
#endif
@@ -909,7 +908,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char*
if(!preExisting) {
- if (! LinuxProcessList_statProcessDir(proc, dirname, name, curTime))
+ if (! LinuxProcessList_statProcessDir(proc, dirname, name))
goto errorReadingProcess;
proc->user = UsersTable_getRef(pl->usersTable, proc->st_uid);

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