diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-28 07:02:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-28 07:02:41 +0000 |
commit | 6cb0ba9b9319c58de1445f7be7200198fb723922 (patch) | |
tree | 61cca6c61ceefe873905f05ada1a3266cc3352bb /usr.sbin | |
parent | 0f24484f90e402ac16f64fc9aacb22fc8f6e75d1 (diff) |
more boring tweaks
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ztsscale/ztsscale.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ztsscale/ztsscale.c b/usr.sbin/ztsscale/ztsscale.c index cd07f65bf2e..182198dd284 100644 --- a/usr.sbin/ztsscale/ztsscale.c +++ b/usr.sbin/ztsscale/ztsscale.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ztsscale.c,v 1.7 2005/04/28 06:58:27 deraadt Exp $ */ +/* $OpenBSD: ztsscale.c,v 1.8 2005/04/28 07:02:40 deraadt Exp $ */ /* * Copyright (c) 2005 Matthieu Herrb @@ -93,7 +93,7 @@ void wait_event(int mfd, int *x, int *y) { int down; - size_t len; + ssize_t len; struct wscons_event evbuf; down = 0; @@ -126,9 +126,8 @@ save_screen(void) { int mode = WSDISPLAYIO_MODE_DUMBFB; - if (ioctl(fd, WSDISPLAYIO_SMODE, &mode) == -1) { + if (ioctl(fd, WSDISPLAYIO_SMODE, &mode) == -1) warn("ioctl SMODE\n"); - } mapaddr = (void *)mmap(0, WIDTH*HEIGHT*sizeof(short), PROT_READ|PROT_WRITE, MAP_SHARED, fd, (off_t)0); if (mapaddr == (void *)-1) @@ -267,7 +266,6 @@ again: (void)printf("%s.%s=%d,%d,%d,%d\n", topname[CTL_MACHDEP].ctl_name, machdepname[CPU_ZTSSCALE].ctl_name, ts.ts_minx, ts.ts_maxx, ts.ts_miny, ts.ts_maxy); - return 0; err: |