aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorRami Ylimäki <rami.ylimaki@vincit.fi>2011-03-08 11:23:47 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2011-03-09 15:28:10 +1000
commit41111ce1efc6181b8da042c5b01f01cdf92315be (patch)
treea80c572160cbf63974bae47bc911ac12473c5522 /src/evdev.h
parentRelease leaked device identifier on input device disconnect. (diff)
downloadxf86-input-evdev-41111ce1efc6181b8da042c5b01f01cdf92315be.tar.gz
xf86-input-evdev-41111ce1efc6181b8da042c5b01f01cdf92315be.tar.bz2
xf86-input-evdev-41111ce1efc6181b8da042c5b01f01cdf92315be.zip
Remove constness of device filename to avoid warning when freed.
A warning from free() can be avoided by casting the constness away from its argument pointer or by not declaring the pointer as const in the first place. Signed-off-by: Rami Ylimäki <rami.ylimaki@vincit.fi> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 5df7d3e..c16ccb2 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -104,7 +104,7 @@ typedef struct {
} EventQueueRec, *EventQueuePtr;
typedef struct {
- const char *device;
+ char *device;
int grabDevice; /* grab the event device? */
int num_vals; /* number of valuators */