Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
8d01ae20
Commit
8d01ae20
authored
Aug 24, 2018
by
Hisham Muhammad
Browse files
Linux: remove warnings of unused variables
parent
049af17b
Changes
1
Hide whitespace changes
Inline
Side-by-side
linux/LinuxProcessList.c
View file @
8d01ae20
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment