aboutsummaryrefslogtreecommitdiff
path: root/procps/pstree.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-03-27 16:15:02 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-27 16:15:02 +0200
commita9e5c43b8b9b5d18b6aae08452fe2a3a46a248b4 (patch)
treef6f97fd76f65c2d5b42a8a196fb2ae1d7080c976 /procps/pstree.c
parent353680aa46dc91ecfd80dd19db131de7aa90bd22 (diff)
downloadbusybox-a9e5c43b8b9b5d18b6aae08452fe2a3a46a248b4.tar.gz
pstree: fix "warning: 'handle_thread' defined but not used"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/pstree.c')
-rw-r--r--procps/pstree.c2
1 files changed, 2 insertions, 0 deletions
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)
{