diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-15 06:00:44 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-12 10:14:50 -0800 |
commit | fecc7eb1cf66db64728ee2d68cd9443df7e70879 (patch) | |
tree | 659d74fb9f18bcc8fc0a0774b71bfad3d8a050f2 /include | |
parent | af04cf6968b16cc9efd17905471047e7de62058a (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 12 | ||||
-rw-r--r-- | include/inputstr.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/input.h b/include/input.h index 2d5e531ef..042128f7f 100644 --- a/include/input.h +++ b/include/input.h @@ -221,12 +221,12 @@ typedef struct _InputOption InputOption; typedef struct _XI2Mask XI2Mask; typedef struct _InputAttributes { - char *product; - char *vendor; - char *device; - char *pnp_id; - char *usb_id; - char **tags; /* null-terminated */ + const char *product; + const char *vendor; + const char *device; + const char *pnp_id; + const char *usb_id; + const char **tags; /* null-terminated */ uint32_t flags; } InputAttributes; diff --git a/include/inputstr.h b/include/inputstr.h index dc36c5d8d..d369c9ff3 100644 --- a/include/inputstr.h +++ b/include/inputstr.h @@ -542,7 +542,7 @@ typedef struct _DeviceIntRec { GrabInfoRec deviceGrab; /* grab on the device */ int type; /* MASTER_POINTER, MASTER_KEYBOARD, SLAVE */ Atom xinput_type; - char *name; + const char *name; int id; KeyClassPtr key; ValuatorClassPtr valuator; |