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 --- misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 84df955..0b5f433 100644 --- a/misc.c +++ b/misc.c @@ -208,8 +208,8 @@ ReportMultipleDefs(char *type, char *field, char *name) /***====================================================================***/ Bool -UseNewField(unsigned field, - CommonInfo * oldDefs, CommonInfo * newDefs, unsigned *pCollide) +UseNewField(unsigned field, const CommonInfo *oldDefs, + const CommonInfo *newDefs, unsigned *pCollide) { Bool useNew; @@ -234,8 +234,8 @@ UseNewField(unsigned field, #if 0 static Bool -MergeNewField(unsigned field, - CommonInfo * oldDefs, CommonInfo * newDefs, unsigned *pCollide) +MergeNewField(unsigned field, const CommonInfo *oldDefs, + const CommonInfo *newDefs, unsigned *pCollide) { if ((oldDefs->defined & field) && (newDefs->defined & field)) { -- cgit v1.2.3