[PATCH synaptics 3/9] tools: un-typedef TouchpadState

Peter Hutterer peter.hutterer at who-t.net
Wed May 30 22:20:01 PDT 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 tools/syndaemon.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/syndaemon.c b/tools/syndaemon.c
index d24f09c..50b7435 100644
--- a/tools/syndaemon.c
+++ b/tools/syndaemon.c
@@ -47,11 +47,11 @@
 
 #include "synaptics-properties.h"
 
-typedef enum {
+enum TouchpadState {
     TouchpadOn = 0,
     TouchpadOff = 1,
     TappingOff = 2
-} TouchpadState;
+};
 
 static Bool pad_disabled
     /* internal flag, this does not correspond to device state */ ;
@@ -62,8 +62,8 @@ static const char *pid_file;
 static Display *display;
 static XDevice *dev;
 static Atom touchpad_off_prop;
-static TouchpadState previous_state;
-static TouchpadState disable_state = TouchpadOff;
+static enum TouchpadState previous_state;
+static enum TouchpadState disable_state = TouchpadOff;
 static int verbose;
 
 #define KEYMAP_SIZE 32
-- 
1.7.10.1



More information about the xorg-devel mailing list