diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-06 10:38:16 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-12-10 09:14:27 +1000 |
commit | 31c6cf9f6fbcc7e90e3d6b7927664cbe54e27edf (patch) | |
tree | c8cabc8f63c936f95029704f6f3be32238074dc4 /src | |
parent | b4e07e7acc84f68ed2d37557d64d5655cc262ed5 (diff) |
Fix const compiler warnings
XExtInt.c:80:38: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
XExtInt.c:150:5: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
XExtInt.c:151:5: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
XExtInt.c:152:5: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
XExtInt.c:153:5: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
XExtInt.c:154:5: warning: initialization discards 'const' qualifier from
pointer target type [enabled by default]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/XExtInt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c index fd1ae6c..1c668c7 100644 --- a/src/XExtInt.c +++ b/src/XExtInt.c @@ -77,7 +77,7 @@ int copy_classes(XIDeviceInfo *to, xXIAnyInfo* from, int *nclasses); int size_classes(xXIAnyInfo* from, int nclasses); static XExtensionInfo *xinput_info; -static /* const */ char *xinput_extension_name = INAME; +static const char *xinput_extension_name = INAME; static int XInputClose( Display * /* dpy */, @@ -143,7 +143,7 @@ static /* const */ XExtensionHooks xinput_extension_hooks = { XInputError, /* error_string */ }; -static char *XInputErrorList[] = { +static const char *XInputErrorList[] = { "BadDevice, invalid or uninitialized input device", /* BadDevice */ "BadEvent, invalid event type", /* BadEvent */ "BadMode, invalid mode parameter", /* BadMode */ |