PERFORCE change 156385 for review
Robert Watson
rwatson at FreeBSD.org
Mon Jan 19 05:34:09 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=156385
Change 156385 by rwatson at 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);
More information about the p4-projects
mailing list