From owner-p4-projects@FreeBSD.ORG Mon Jan 19 13:34:08 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 140771065676; Mon, 19 Jan 2009 13:34:08 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8151106564A for ; Mon, 19 Jan 2009 13:34:07 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B60A78FC17 for ; Mon, 19 Jan 2009 13:34:07 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n0JDY7G6073819 for ; Mon, 19 Jan 2009 13:34:07 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n0JDY7Bu073817 for perforce@freebsd.org; Mon, 19 Jan 2009 13:34:07 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Mon, 19 Jan 2009 13:34:07 GMT Message-Id: <200901191334.n0JDY7Bu073817@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 156385 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jan 2009 13:34:09 -0000 http://perforce.freebsd.org/chv.cgi?CH=156385 Change 156385 by rwatson@rwatson_freebsd_capabilities on 2009/01/19 13:33:39 Don't need to cast f_data, it's a void * pointer. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_procdesc.c#8 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_procdesc.c#8 (text+ko) ==== @@ -156,7 +156,7 @@ error = EBADF; goto out; } - pd = (struct procdesc *)fp->f_data; + pd = fp->f_data; sx_slock(&proctree_lock); if (td->td_proc != NULL) { *p = pd->pd_proc; @@ -185,7 +185,7 @@ if (error) return (error); if (fp->f_type == DTYPE_PROCDESC) { - pd = (struct procdesc *)fp->f_data; + pd = fp->f_data; pid = pd->pd_pid; AUDIT_ARG(pid, pid); } else @@ -392,7 +392,7 @@ int revents; revents = 0; - pd = (struct procdesc *)fp->f_data; + pd = fp->f_data; PROCDESC_LOCK(pd); if (pd->pd_flags & PD_EXITED) revents |= POLLHUP; @@ -423,7 +423,7 @@ * died. For example, caching its credential data. */ bzero(sb, sizeof(*sb)); - pd = (struct procdesc *)fp->f_data; + pd = fp->f_data; sx_slock(&proctree_lock); if (pd->pd_proc != NULL) { PROC_LOCK(pd->pd_proc);