pstree: fix "warning: 'handle_thread' defined but not used"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-03-27 16:15:02 +02:00
parent 353680aa46
commit a9e5c43b8b

View File

@ -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)
{