diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/sys/rman.h | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz |
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
Diffstat (limited to 'sys/sys/rman.h')
-rw-r--r-- | sys/sys/rman.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/sys/rman.h b/sys/sys/rman.h index 0e59f75..57e8f6a 100644 --- a/sys/sys/rman.h +++ b/sys/sys/rman.h @@ -42,11 +42,11 @@ * address space). That is also why the indices are defined to have type * `unsigned long' -- that being the largest integral type in Standard C. */ -CIRCLEQ_HEAD(resource_head, resource); +CIRCLEQ_HEAD(resource_head, struct resource); struct resource { - CIRCLEQ_ENTRY(resource) r_link; - LIST_ENTRY(resource) r_sharelink; - LIST_HEAD(, resource) *r_sharehead; + CIRCLEQ_ENTRY(struct resource) r_link; + LIST_ENTRY(struct resource) r_sharelink; + LIST_HEAD(, struct resource) *r_sharehead; u_long r_start; /* index of the first entry in this resource */ u_long r_end; /* index of the last entry (inclusive) */ u_int r_flags; @@ -69,13 +69,13 @@ enum rman_type { RMAN_UNINIT = 0, RMAN_GAUGE, RMAN_ARRAY }; struct rman { struct resource_head rm_list; struct simplelock *rm_slock; /* mutex used to protect rm_list */ - TAILQ_ENTRY(rman) rm_link; /* link in list of all rmans */ + TAILQ_ENTRY(struct rman) rm_link; /* link in list of all rmans */ u_long rm_start; /* index of globally first entry */ u_long rm_end; /* index of globally last entry */ enum rman_type rm_type; /* what type of resource this is */ const char *rm_descr; /* text descripion of this resource */ }; -TAILQ_HEAD(rman_head, rman); +TAILQ_HEAD(rman_head, struct rman); #ifdef _KERNEL |