diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-11 15:18:26 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-03 11:02:11 -0800 |
commit | 6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c (patch) | |
tree | 45171678d6b1fbfe936bb2586933d3e03c93500a /indicators.c | |
parent | 299c9762b1dbe53f3297c54e5526aeae767d1a10 (diff) |
Mark more pointers as const
Some suggested by cppcheck, others by manual code inspection
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'indicators.c')
-rw-r--r-- | indicators.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/indicators.c b/indicators.c index 995788b..470091e 100644 --- a/indicators.c +++ b/indicators.c @@ -57,7 +57,7 @@ ClearIndicatorMapInfo(Display * dpy, LEDInfo * info) } LEDInfo * -AddIndicatorMap(LEDInfo * oldLEDs, LEDInfo * new) +AddIndicatorMap(LEDInfo *oldLEDs, const LEDInfo *new) { LEDInfo *old, *last; @@ -199,9 +199,8 @@ static LookupEntry groupComponentNames[] = { }; int -SetIndicatorMapField(LEDInfo * led, - XkbDescPtr xkb, - const char *field, ExprDef *arrayNdx, ExprDef *value) +SetIndicatorMapField(LEDInfo *led, XkbDescPtr xkb, const char *field, + const ExprDef *arrayNdx, const ExprDef *value) { ExprResult rtrn; Bool ok; @@ -324,9 +323,8 @@ SetIndicatorMapField(LEDInfo * led, } LEDInfo * -HandleIndicatorMapDef(IndicatorMapDef * def, - XkbDescPtr xkb, - LEDInfo * dflt, LEDInfo * oldLEDs, unsigned merge) +HandleIndicatorMapDef(IndicatorMapDef *def, XkbDescPtr xkb, + const LEDInfo *dflt, LEDInfo *oldLEDs, unsigned merge) { LEDInfo led; Bool ok; |