xi: More warning cleanup for input
Lots more const char stuff. Remove duplicate defs of CoreKeyboardProc and CorePointerProc from test/xi2/protocol-common.c Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -1101,7 +1101,7 @@ xi_unregister_handlers(void)
|
||||
static void
|
||||
cmp_attr_fields(InputAttributes * attr1, InputAttributes * attr2)
|
||||
{
|
||||
char **tags1, **tags2;
|
||||
const char **tags1, **tags2;
|
||||
|
||||
assert(attr1 && attr2);
|
||||
assert(attr1 != attr2);
|
||||
@@ -1182,7 +1182,7 @@ dix_input_attributes(void)
|
||||
{
|
||||
InputAttributes orig = { 0 };
|
||||
InputAttributes *new;
|
||||
char *tags[4] = { "tag1", "tag2", "tag2", NULL };
|
||||
const char *tags[4] = { "tag1", "tag2", "tag2", NULL };
|
||||
|
||||
new = DuplicateInputAttributes(NULL);
|
||||
assert(!new);
|
||||
|
||||
@@ -43,9 +43,6 @@ static ClientRec server_client;
|
||||
|
||||
void *userdata;
|
||||
|
||||
extern int CorePointerProc(DeviceIntPtr pDev, int what);
|
||||
extern int CoreKeyboardProc(DeviceIntPtr pDev, int what);
|
||||
|
||||
static void
|
||||
fake_init_sprite(DeviceIntPtr dev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user