summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wsmoused
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2011-03-22 10:16:23 +0000
committerokan <okan@openbsd.org>2011-03-22 10:16:23 +0000
commit6c2da34c701487e6cd820640c4c9f2e778fd6621 (patch)
treec4ca3da6aaace82debb3ee15e1a5bec423abf2bb /usr.sbin/wsmoused
parentdon't refer to an error message which no longer exists (bge's jumbo buffer (diff)
downloadwireguard-openbsd-6c2da34c701487e6cd820640c4c9f2e778fd6621.tar.xz
wireguard-openbsd-6c2da34c701487e6cd820640c4c9f2e778fd6621.zip
use timerclear macro
ok miod@
Diffstat (limited to 'usr.sbin/wsmoused')
-rw-r--r--usr.sbin/wsmoused/wsmoused.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index ccf55e898e1..ea2d0b10362 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.25 2009/06/21 16:13:18 jacekm Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.26 2011/03/22 10:16:23 okan Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -276,8 +276,7 @@ mouse_click(struct wscons_event *event)
if (event->type == WSCONS_EVENT_MOUSE_DOWN) {
if (timercmp(&max_date, &buttonstate[i].tv, >)) {
- buttonstate[i].tv.tv_sec = 0;
- buttonstate[i].tv.tv_usec = 0;
+ timerclear(&buttonstate[i].tv);
buttonstate[i].count = 1;
} else {
buttonstate[i].count++;