From 6db8fd556e2562e9a0a821c0d6fd4f7cdcf6266c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Dec 2022 15:18:26 -0800 Subject: Mark more pointers as const Some suggested by cppcheck, others by manual code inspection Signed-off-by: Alan Coopersmith --- indicators.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'indicators.c') 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; -- cgit v1.2.3