xfree86: constify InputDriverPtr->driverName and default_options
Already treated as const anyway by all drivers. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c66089d220
commit
541934168d
|
@ -68,14 +68,14 @@
|
||||||
/* This holds the input driver entry and module information. */
|
/* This holds the input driver entry and module information. */
|
||||||
typedef struct _InputDriverRec {
|
typedef struct _InputDriverRec {
|
||||||
int driverVersion;
|
int driverVersion;
|
||||||
char *driverName;
|
const char *driverName;
|
||||||
void (*Identify) (int flags);
|
void (*Identify) (int flags);
|
||||||
int (*PreInit) (struct _InputDriverRec * drv,
|
int (*PreInit) (struct _InputDriverRec * drv,
|
||||||
struct _InputInfoRec * pInfo, int flags);
|
struct _InputInfoRec * pInfo, int flags);
|
||||||
void (*UnInit) (struct _InputDriverRec * drv,
|
void (*UnInit) (struct _InputDriverRec * drv,
|
||||||
struct _InputInfoRec * pInfo, int flags);
|
struct _InputInfoRec * pInfo, int flags);
|
||||||
pointer module;
|
pointer module;
|
||||||
char **default_options;
|
const char **default_options;
|
||||||
} InputDriverRec, *InputDriverPtr;
|
} InputDriverRec, *InputDriverPtr;
|
||||||
|
|
||||||
/* This is to input devices what the ScrnInfoRec is to screens. */
|
/* This is to input devices what the ScrnInfoRec is to screens. */
|
||||||
|
|
Loading…
Reference in New Issue