diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-05 17:01:50 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-05 17:01:50 -0800 |
commit | f52912d06279d4c32e5031d1416f2f273bb42116 (patch) | |
tree | 2282f0b53ff644a7da06925b9a467b016fc5e6d2 | |
parent | 13a26918d848bc8feeaaf59293f793c2af1ce52e (diff) |
Fix 185 -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/properties.c | 9 | ||||
-rw-r--r-- | src/synaptics.c | 2 | ||||
-rw-r--r-- | tools/synclient.c | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/properties.c b/src/properties.c index c776e6c..c210086 100644 --- a/src/properties.c +++ b/src/properties.c @@ -97,8 +97,8 @@ Atom prop_product_id = 0; Atom prop_device_node = 0; static Atom -InitTypedAtom(DeviceIntPtr dev, char *name, Atom type, int format, int nvalues, - int *values) +InitTypedAtom(DeviceIntPtr dev, const char *name, Atom type, int format, + int nvalues, int *values) { int i; Atom atom; @@ -142,13 +142,14 @@ InitTypedAtom(DeviceIntPtr dev, char *name, Atom type, int format, int nvalues, } static Atom -InitAtom(DeviceIntPtr dev, char *name, int format, int nvalues, int *values) +InitAtom(DeviceIntPtr dev, const char *name, int format, + int nvalues, int *values) { return InitTypedAtom(dev, name, XA_INTEGER, format, nvalues, values); } static Atom -InitFloatAtom(DeviceIntPtr dev, char *name, int nvalues, float *values) +InitFloatAtom(DeviceIntPtr dev, const char *name, int nvalues, float *values) { Atom atom; diff --git a/src/synaptics.c b/src/synaptics.c index d29ba19..2fd77f6 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -465,7 +465,7 @@ SynapticsIsSoftButtonAreasValid(int *values) } static void -set_softbutton_areas_option(InputInfoPtr pInfo, char *option_name, int offset) +set_softbutton_areas_option(InputInfoPtr pInfo, const char *option_name, int offset) { SynapticsPrivate *priv = pInfo->private; SynapticsParameters *pars = &priv->synpara; diff --git a/tools/synclient.c b/tools/synclient.c index 13fb812..fa56198 100644 --- a/tools/synclient.c +++ b/tools/synclient.c @@ -65,11 +65,11 @@ enum ParaType { }; struct Parameter { - char *name; /* Name of parameter */ + const char *name; /* Name of parameter */ enum ParaType type; /* Type of parameter */ double min_val; /* Minimum allowed value */ double max_val; /* Maximum allowed value */ - char *prop_name; /* Property name */ + const char *prop_name; /* Property name */ int prop_format; /* Property format (0 for floats) */ int prop_offset; /* Offset inside property */ }; |