SCCS-vsn: lib/libc/db/mpool/mpool.c 5.2
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)mpool.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)mpool.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
#ifdef STATISTICS
++mp->pageput;
#endif
#ifdef STATISTICS
++mp->pageput;
#endif
- baddr = page - sizeof(BKT);
+ baddr = (BKT *)((char *)page - sizeof(BKT));
#ifdef DEBUG
if (!(baddr->flags & MPOOL_PINNED))
err("mpool_put: page %d not pinned", b->pgno);
#ifdef DEBUG
if (!(baddr->flags & MPOOL_PINNED))
err("mpool_put: page %d not pinned", b->pgno);