mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 04:28:57 +00:00
pstree: fix "warning: 'handle_thread' defined but not used"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
353680aa46
commit
a9e5c43b8b
@ -339,12 +339,14 @@ static void dump_by_user(PROC *current, uid_t uid)
|
||||
dump_by_user(walk->child, uid);
|
||||
}
|
||||
|
||||
#if ENABLE_FEATURE_SHOW_THREADS
|
||||
static void handle_thread(const char *comm, pid_t pid, pid_t ppid, uid_t uid)
|
||||
{
|
||||
char threadname[COMM_LEN + 2];
|
||||
sprintf(threadname, "{%.*s}", COMM_LEN - 2, comm);
|
||||
add_proc(threadname, pid, ppid, uid/*, 1*/);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void mread_proc(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user