diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-24 18:05:58 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-08-24 18:38:06 -0300 |
commit | 8d01ae2054866f7a18ad69b7c3725be23f98d2a6 (patch) | |
tree | e22f711a478806b988e06bc7ffa67be7f32ee258 /linux | |
parent | 049af17be0cc1ddd2674e1ef5ceb9851f417436a (diff) |
Linux: remove warnings of unused variables
Diffstat (limited to 'linux')
-rw-r--r-- | linux/LinuxProcessList.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 601b0e46..3509e9e0 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'; @@ -765,7 +765,6 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char* struct dirent* entry; Settings* settings = pl->settings; - time_t curTime = tv.tv_sec; #ifdef HAVE_TASKSTATS unsigned long long now = tv.tv_sec*1000LL+tv.tv_usec/1000LL; #endif @@ -837,7 +836,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); |