kdrive: Fix const cast warnings in driver name handling.
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
56c405d46a
commit
7107937e47
|
@ -193,7 +193,7 @@ MouseWriteBytes(int fd, unsigned char *c, int n, int timeout)
|
|||
#define MAX_VALID 4 /* number of valid packets before accepting */
|
||||
|
||||
typedef struct _kmouseProt {
|
||||
char *name;
|
||||
const char *name;
|
||||
Bool (*Complete) (KdPointerInfo * pi, unsigned char *ev, int ne);
|
||||
int (*Valid) (KdPointerInfo * pi, unsigned char *ev, int ne);
|
||||
Bool (*Parse) (KdPointerInfo * pi, unsigned char *ev, int ne);
|
||||
|
|
|
@ -174,7 +174,7 @@ typedef enum _kdPointerState {
|
|||
typedef struct _KdPointerInfo KdPointerInfo;
|
||||
|
||||
typedef struct _KdPointerDriver {
|
||||
char *name;
|
||||
const char *name;
|
||||
Status(*Init) (KdPointerInfo *);
|
||||
Status(*Enable) (KdPointerInfo *);
|
||||
void (*Disable) (KdPointerInfo *);
|
||||
|
@ -243,7 +243,7 @@ typedef struct {
|
|||
typedef struct _KdKeyboardInfo KdKeyboardInfo;
|
||||
|
||||
typedef struct _KdKeyboardDriver {
|
||||
char *name;
|
||||
const char *name;
|
||||
Bool (*Init) (KdKeyboardInfo *);
|
||||
Bool (*Enable) (KdKeyboardInfo *);
|
||||
void (*Leds) (KdKeyboardInfo *, int);
|
||||
|
|
Loading…
Reference in New Issue
Block a user