From: Erik van der Kouwe Date: Tue, 8 Jun 2010 13:38:44 +0000 (+0000) Subject: Remove redundant macro cproc_addr X-Git-Tag: v3.1.8~489 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-keyfromlabel.html?a=commitdiff_plain;h=7bd7946346bc4a77c9a75839b4e3902b0764d2d4;p=minix.git Remove redundant macro cproc_addr --- diff --git a/kernel/proc.h b/kernel/proc.h index 7a239edcc..d84f17aec 100644 --- a/kernel/proc.h +++ b/kernel/proc.h @@ -242,7 +242,6 @@ struct proc { #define BEG_USER_ADDR (&proc[NR_TASKS]) #define END_PROC_ADDR (&proc[NR_TASKS + NR_PROCS]) -#define cproc_addr(n) (&(proc + NR_TASKS)[(n)]) #define proc_addr(n) (&(proc[NR_TASKS + (n)])) #define proc_nr(p) ((p)->p_nr) diff --git a/servers/is/dmp_kernel.c b/servers/is/dmp_kernel.c index 962f650ae..923b74c36 100644 --- a/servers/is/dmp_kernel.c +++ b/servers/is/dmp_kernel.c @@ -475,7 +475,7 @@ int proc_nr; if (proc_nr == ANY) return "ANY"; if (proc_nr == NONE) return "NONE"; /* bogus */ if (proc_nr < -NR_TASKS || proc_nr >= NR_PROCS) return "BOGUS"; - p = cproc_addr(proc_nr); + p = proc_addr(proc_nr); if (isemptyp(p)) return "EMPTY"; /* bogus */ return p->p_name; }