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 --- alias.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'alias.c') diff --git a/alias.c b/alias.c index 9c4ba65..c914cbc 100644 --- a/alias.c +++ b/alias.c @@ -76,8 +76,8 @@ HandleCollision(AliasInfo * old, AliasInfo * new) } static void -InitAliasInfo(AliasInfo * info, - unsigned merge, unsigned file_id, char *alias, char *real) +InitAliasInfo(AliasInfo *info, unsigned merge, unsigned file_id, + const char *alias, const char *real) { bzero(info, sizeof(AliasInfo)); info->def.merge = merge; @@ -88,8 +88,8 @@ InitAliasInfo(AliasInfo * info, } int -HandleAliasDef(KeyAliasDef * def, - unsigned merge, unsigned file_id, AliasInfo ** info_in) +HandleAliasDef(const KeyAliasDef *def, + unsigned merge, unsigned file_id, AliasInfo **info_in) { AliasInfo *info; -- cgit v1.2.3