diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-08-29 20:26:19 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-08-29 20:26:19 +0000 |
commit | 2e2c63154c2d1d05a8dea16c9e55504f9b2e2276 (patch) | |
tree | a19b5474ee9a1f4082b6827f4ab346d70701fe47 /sys/dev/wscons/wsdisplay.c | |
parent | d637448fd22fc504f151fe93a6fa57817b4ce8cc (diff) |
less defines
Diffstat (limited to 'sys/dev/wscons/wsdisplay.c')
-rw-r--r-- | sys/dev/wscons/wsdisplay.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c index 2a7a6110a10..fefd6276899 100644 --- a/sys/dev/wscons/wsdisplay.c +++ b/sys/dev/wscons/wsdisplay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplay.c,v 1.32 2001/08/29 20:20:26 mickey Exp $ */ +/* $OpenBSD: wsdisplay.c,v 1.33 2001/08/29 20:26:18 mickey Exp $ */ /* $NetBSD: wsdisplay.c,v 1.37.4.1 2000/06/30 16:27:53 simonb Exp $ */ /* @@ -1134,9 +1134,9 @@ wsdisplay_internal_ioctl(sc, scr, cmd, data, flag, p) return (error); #undef d case WSDISPLAYIO_GETSCREEN: -#define d ((struct wsdisplay_addscreendata *)data) - return (wsdisplay_getscreen(sc, d)); -#undef d + return (wsdisplay_getscreen(sc, + (struct wsdisplay_addscreendata *)data)); + case WSDISPLAYIO_SETSCREEN: return (wsdisplay_switch((void *)sc, *(int *)data, 1)); } @@ -1176,9 +1176,8 @@ wsdisplay_cfg_ioctl(sc, cmd, data, flag, p) return (wsdisplay_delscreen(sc, d->idx, d->flags)); #undef d case WSDISPLAYIO_GETSCREEN: -#define d ((struct wsdisplay_addscreendata *)data) - return (wsdisplay_getscreen(sc, d)); -#undef d + return (wsdisplay_getscreen(sc, + (struct wsdisplay_addscreendata *)data)); case WSDISPLAYIO_SETSCREEN: return (wsdisplay_switch((void *)sc, *(int *)data, 1)); case WSDISPLAYIO_LDFONT: |