From 6cb0ba9b9319c58de1445f7be7200198fb723922 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 28 Apr 2005 07:02:41 +0000 Subject: more boring tweaks --- usr.sbin/ztsscale/ztsscale.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.sbin') 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: -- cgit v1.2.3