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 --- parseutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parseutils.c') diff --git a/parseutils.c b/parseutils.c index fc0838b..917a240 100644 --- a/parseutils.c +++ b/parseutils.c @@ -128,7 +128,7 @@ ExprCreateBinary(unsigned op, ExprDef * left, ExprDef * right) } KeycodeDef * -KeycodeCreate(char *name, ExprDef * value) +KeycodeCreate(const char *name, ExprDef *value) { KeycodeDef *def; @@ -152,7 +152,7 @@ KeycodeCreate(char *name, ExprDef * value) } KeyAliasDef * -KeyAliasCreate(char *alias, char *real) +KeyAliasCreate(const char *alias, const char *real) { KeyAliasDef *def; -- cgit v1.2.3