diff options
author | Rami Ylimäki <rami.ylimaki@vincit.fi> | 2011-03-08 11:23:47 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-09 15:28:10 +1000 |
commit | 41111ce1efc6181b8da042c5b01f01cdf92315be (patch) | |
tree | a80c572160cbf63974bae47bc911ac12473c5522 /src/evdev.h | |
parent | b4c47d5f9454a708a5ab161c015646f2ca6e1ac3 (diff) |
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.h | 2 |
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 */ |