aboutsummaryrefslogtreecommitdiffstats
path: root/include/mpool.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
committerJake Burkholder <jake@FreeBSD.org>2000-05-23 20:41:01 +0000
commit740a1973a62eaa8e1dc23e22f84dacb3346d303a (patch)
treeacf054a865eef37380f5ac3d3c07766b5bb234b0 /include/mpool.h
parentb4183771fd8ab7a5946fd38df04c1e24b1268bea (diff)
downloadsrc-740a1973a62eaa8e1dc23e22f84dacb3346d303a.tar.gz
src-740a1973a62eaa8e1dc23e22f84dacb3346d303a.zip
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
Notes
Notes: svn path=/head/; revision=60833
Diffstat (limited to 'include/mpool.h')
-rw-r--r--include/mpool.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/mpool.h b/include/mpool.h
index 9e3ebeb4ed7a..8838fbddd157 100644
--- a/include/mpool.h
+++ b/include/mpool.h
@@ -31,6 +31,7 @@
* SUCH DAMAGE.
*
* @(#)mpool.h 8.2 (Berkeley) 7/14/94
+ * $FreeBSD$
*/
#ifndef _MPOOL_H_
@@ -50,8 +51,8 @@
/* The BKT structures are the elements of the queues. */
typedef struct _bkt {
- CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
- CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
+ CIRCLEQ_ENTRY(struct _bkt) hq; /* hash queue */
+ CIRCLEQ_ENTRY(struct _bkt) q; /* lru queue */
void *page; /* page */
pgno_t pgno; /* page number */
@@ -61,9 +62,9 @@ typedef struct _bkt {
} BKT;
typedef struct MPOOL {
- CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
+ CIRCLEQ_HEAD(_lqh, struct _bkt) lqh; /* lru queue head */
/* hash queue array */
- CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
+ CIRCLEQ_HEAD(_hqh, struct _bkt) hqh[HASHSIZE];
pgno_t curcache; /* current number of cached pages */
pgno_t maxcache; /* max number of cached pages */
pgno_t npages; /* number of pages in the file */