summaryrefslogtreecommitdiff
path: root/usr.sbin/wsmoused
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2011-03-22 10:16:24 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2011-03-22 10:16:24 +0000
commitf96dfa13e2e32079a84f0671399cd4ea025b9692 (patch)
tree316c38084fdd1cbfb93282b96970a7e589880ce0 /usr.sbin/wsmoused
parent9eec10ca91344ea38ad949d967ef2dc9098c30a6 (diff)
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++;