From a9e5c43b8b9b5d18b6aae08452fe2a3a46a248b4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 27 Mar 2011 16:15:02 +0200 Subject: pstree: fix "warning: 'handle_thread' defined but not used" Signed-off-by: Denys Vlasenko --- procps/pstree.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'procps/pstree.c') diff --git a/procps/pstree.c b/procps/pstree.c index 4cd8cb458..16649cfaa 100644 --- a/procps/pstree.c +++ b/procps/pstree.c @@ -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) { -- cgit v1.2.3