~dr3mro/evdev/volume_fix

« back to all changes in this revision

Viewing changes to src/evdev.h

  • Committer: Peter Hutterer
  • Author(s): Rami Ylimäki
  • Date: 2011-03-09 05:28:10 UTC
  • Revision ID: git-v1:41111ce1efc6181b8da042c5b01f01cdf92315be
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>

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
} EventQueueRec, *EventQueuePtr;
105
105
 
106
106
typedef struct {
107
 
    const char *device;
 
107
    char *device;
108
108
    int grabDevice;         /* grab the event device? */
109
109
 
110
110
    int num_vals;           /* number of valuators */