diff options
author | Alexandr Shadchin <shadchin@cvs.openbsd.org> | 2011-11-19 12:36:17 +0000 |
---|---|---|
committer | Alexandr Shadchin <shadchin@cvs.openbsd.org> | 2011-11-19 12:36:17 +0000 |
commit | df10e627ab822fd0e9a22ead159aee4e0efeb8e5 (patch) | |
tree | 4e9ca4521b1391aa5c3d4a4bd96bf619ddc55f24 /driver/xf86-input-ws/src/emumb.c | |
parent | ea0eae27eabbfbace86502c5fdf94d94cd4bd4e2 (diff) |
Static atoms don't need to be initialized to 0.
ok matthieu@
Diffstat (limited to 'driver/xf86-input-ws/src/emumb.c')
-rw-r--r-- | driver/xf86-input-ws/src/emumb.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/driver/xf86-input-ws/src/emumb.c b/driver/xf86-input-ws/src/emumb.c index a1946bf92..f557c156c 100644 --- a/driver/xf86-input-ws/src/emumb.c +++ b/driver/xf86-input-ws/src/emumb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emumb.c,v 1.6 2011/11/07 18:33:04 shadchin Exp $ */ +/* $OpenBSD: emumb.c,v 1.7 2011/11/19 12:36:16 shadchin Exp $ */ /* * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * Copyright 1993 by David Dawes <dawes@xfree86.org> @@ -54,8 +54,8 @@ enum { MBEMU_AUTO }; -static Atom prop_mbemu = 0; /* Middle button emulation on/off property */ -static Atom prop_mbtimeout = 0; /* Middle button timeout property */ +static Atom prop_mbemu; /* Middle button emulation on/off property */ +static Atom prop_mbtimeout; /* Middle button timeout property */ /* * Lets create a simple finite-state machine for 3 button emulation: @@ -191,7 +191,6 @@ static signed char stateTab[11][5][3] = { }, }; - int wsmbEmuTimer(InputInfoPtr pInfo) { @@ -215,7 +214,6 @@ wsmbEmuTimer(InputInfoPtr pInfo) return 0; } - /** * Emulate a middle button on button press. * @@ -273,7 +271,6 @@ wsmbEmuFilterEvent(InputInfoPtr pInfo, int button, BOOL press) return ret; } - void wsmbEmuWakeupHandler(pointer data, int i, @@ -352,7 +349,6 @@ wsmbEmuEnable(InputInfoPtr pInfo, BOOL enable) priv->emulateMB.enabled = enable; } - static int wsmbEmuSetProperty(DeviceIntPtr dev, Atom atom, XIPropertyValuePtr val, BOOL checkonly) |