From owner-freebsd-hackers Fri Jul 6 6:47:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.javanet.com (mail1.javanet.com [205.219.162.10]) by hub.freebsd.org (Postfix) with ESMTP id 18BB137B405 for ; Fri, 6 Jul 2001 06:47:37 -0700 (PDT) (envelope-from kaworu@sektor7.ath.cx) Received: from wintermute.sekt7 (209-6-248-16.c3-0.lex-ubr1.sbo-lex.ma.cable.rcn.com [209.6.248.16]) by mail1.javanet.com (8.9.3/8.9.2) with ESMTP id JAA26189 for ; Fri, 6 Jul 2001 09:48:27 -0400 (EDT) Date: Fri, 6 Jul 2001 09:48:26 -0400 (EDT) Message-Id: <200107061348.JAA26189@mail1.javanet.com> From: Evan Sarmiento To: freebsd-hackers@freebsd.org Subject: LIST_NEXT() Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm writing a kernel module, and it involves traversing the proc list searching for the right structure, however, when I use SLIST_NEXT(p, p_list) in the program, I get a warning when I compile it: warning: statement with mo effect What am I doing wrong? I've read the manpages on queue and looked at the proc structure. Here's the code: int prfw_setflags(p, uap) struct proc *p; struct prfw_setflags_args *uap; { ... if (uap->id) { while (uap->id != p->p_pid) LIST_NEXT(p, p_list); } ... } Thanks a lot. Evan Sarmiento To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message