Cast pointers to uintptr_t rather than u_int32_t. This doesn't work too

well on machines with 64 bit pointers.
This commit is contained in:
peter 2002-03-19 23:28:35 +00:00
parent ec33d1fb07
commit aaba6f9a53
2 changed files with 2 additions and 2 deletions

View File

@ -780,7 +780,7 @@ epic_common_attach(sc)
/* Align pool on PAGE_SIZE */
pool = (caddr_t)sc->pool;
pool = (caddr_t)((u_int32_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
pool = (caddr_t)((uintptr_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
/* Distribute memory */
sc->tx_flist = (void *)pool;

View File

@ -780,7 +780,7 @@ epic_common_attach(sc)
/* Align pool on PAGE_SIZE */
pool = (caddr_t)sc->pool;
pool = (caddr_t)((u_int32_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
pool = (caddr_t)((uintptr_t)(pool + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
/* Distribute memory */
sc->tx_flist = (void *)pool;