artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77e6ecc
)
Fix after struct wscons_event size change.
author
matthieu
<matthieu@openbsd.org>
Tue, 31 Dec 2013 07:16:50 +0000
(07:16 +0000)
committer
matthieu
<matthieu@openbsd.org>
Tue, 31 Dec 2013 07:16:50 +0000
(07:16 +0000)
ok deraadt@
usr.sbin/ztsscale/ztsscale.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ztsscale/ztsscale.c
b/usr.sbin/ztsscale/ztsscale.c
index
917be15
..
2b83192
100644
(file)
--- a/
usr.sbin/ztsscale/ztsscale.c
+++ b/
usr.sbin/ztsscale/ztsscale.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ztsscale.c,v 1.1
5 2009/11/10 04:34:38 deraadt Exp $
*/
+/* $OpenBSD: ztsscale.c,v 1.1
6 2013/12/31 07:16:50 matthieu Exp $
*/
/*
* Copyright (c) 2005 Matthieu Herrb
@@
-103,7
+103,7
@@
wait_event(int mfd, int *x, int *y)
*x = *y = -1;
while (down || *x == -1 || *y == -1) {
len = read(mfd, &evbuf, sizeof(evbuf));
- if (len !=
16
)
+ if (len !=
sizeof(evbuf)
)
break;
switch (evbuf.type) {
case WSCONS_EVENT_MOUSE_DOWN: