[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [git commit master 1/1] pstree: fix "warning: 'handle_thread' defined but not used"
From:       vda.linux () googlemail ! com (Denys Vlasenko)
Date:       2011-03-27 14:15:02
Message-ID: 20110327141526.E7E7781948 () busybox ! osuosl ! org
[Download RAW message or body]


commit: http://git.busybox.net/busybox/commit/?id=a9e5c43b8b9b5d18b6aae08452fe2a3a46a248b4
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 procps/pstree.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/procps/pstree.c b/procps/pstree.c
index 4cd8cb4..16649cf 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)
 {
-- 
1.7.3.4


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic