diff options
| author | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 06:30:43 +0000 |
|---|---|---|
| committer | Alexander Kabaev <kan@FreeBSD.org> | 2004-07-28 06:30:43 +0000 |
| commit | 1f74490224304b836badac5720e865ab071c242f (patch) | |
| tree | 02ea8e4c6c1019ba130219d1dc256faf42f73cbf /sys/dev | |
| parent | eec256de797ad952d7431e420d2367722d8cbf38 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 4 | ||||
| -rw-r--r-- | sys/dev/syscons/syscons.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 669c25673d79e..5632963ae968b 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -872,7 +872,7 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) frbp = scp->vtb.vtb_buffer + scp->ysize * lsize + ptr->x * sizeof(u_int16_t); /* Pointer to the last line of target buffer */ - (vm_offset_t)outp += ptr->ysize * csize; + outp = (char *)outp + ptr->ysize * csize; /* Pointer to the last line of history buffer */ if (scp->history != NULL) hstp = scp->history->vtb_buffer + sc_vtb_tail(scp->history) * @@ -892,7 +892,7 @@ scioctl(struct cdev *dev, u_long cmd, caddr_t data, int flag, struct thread *td) } if (lnum < ptr->y) continue; - (vm_offset_t)outp -= csize; + outp = (char *)outp - csize; retval = copyout((void *)frbp, outp, csize); if (retval != 0) break; diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index 29909f962e591..99bf8a4aeec8f 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -92,7 +92,7 @@ #define SC_DRIVER_NAME "sc" #define SC_VTY(dev) minor(dev) #define SC_DEV(sc, vty) ((sc)->dev[(vty) - (sc)->first_vty]) -#define SC_STAT(dev) ((scr_stat *)(dev)->si_drv1) +#define SC_STAT(dev) (*((scr_stat **)&(dev)->si_drv1)) /* printable chars */ #ifndef PRINTABLE |
