diff options
author | bde <bde@FreeBSD.org> | 2002-09-10 12:19:16 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-09-10 12:19:16 +0000 |
commit | 76b3173c28cba290efa0dc76399fc0c456f4d339 (patch) | |
tree | e0b4bcc9723c0d116f78e088ace5119e99dd4f84 | |
parent | a31246083854c68b3a59d1cb9909b800297f0247 (diff) | |
download | FreeBSD-src-76b3173c28cba290efa0dc76399fc0c456f4d339.zip FreeBSD-src-76b3173c28cba290efa0dc76399fc0c456f4d339.tar.gz |
Fixed namespace pollution in uma changes:
- use `struct uma_zone *' instead of uma_zone_t, so that <sys/uma.h> isn't
a prerequisite.
- don't include <sys/uma.h>.
Namespace pollution makes "opaque" types like uma_zone_t perfectly
non-opaque. Such types should never be used (see style(9)).
-rw-r--r-- | sys/sys/proc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 9673b25..d5741ec 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -57,7 +57,6 @@ #endif #include <sys/ucred.h> #include <machine/proc.h> /* Machine-dependent proc substruct. */ -#include <vm/uma.h> /* * One structure allocated per session. @@ -773,7 +772,7 @@ extern struct proclist zombproc; /* List of zombie processes. */ extern struct proc *initproc, *pageproc; /* Process slots for init, pager. */ extern struct proc *updateproc; /* Process slot for syncer (sic). */ -extern uma_zone_t proc_zone; +extern struct uma_zone *proc_zone; extern int lastpid; |