From a1f7e4ed5ef8956f04462dfd6614e9c8f27a3767 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sat, 4 Jan 2025 08:50:19 +0000 Subject: [PATCH] lef: post K&R constify ripple These functions are using data that is already const. --- lef/lefInt.h | 4 ++-- lef/lefRead.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lef/lefInt.h b/lef/lefInt.h index 15240db5..d0c4f2c0 100644 --- a/lef/lefInt.h +++ b/lef/lefInt.h @@ -145,8 +145,8 @@ extern int lefDefInitFunc(CellDef *def); extern int lefDefPushFunc(CellUse *use, bool *recurse); extern FILE *lefFileOpen(CellDef *def, char *file, char *suffix, char *mode, char **prealfile); -extern int LefParseEndStatement(FILE *f, char *match); -extern void LefSkipSection(FILE *f, char *section); +extern int LefParseEndStatement(FILE *f, const char *match); +extern void LefSkipSection(FILE *f, const char *section); extern void LefEndStatement(FILE *f); extern CellDef *lefFindCell(char *name); extern char *LefNextToken(FILE *f, bool ignore_eol); diff --git a/lef/lefRead.c b/lef/lefRead.c index b0acca12..82bb048a 100644 --- a/lef/lefRead.c +++ b/lef/lefRead.c @@ -458,7 +458,7 @@ LefError(int type, const char *fmt, ...) int LefParseEndStatement(f, match) FILE *f; - char *match; + const char *match; { char *token; int keyword, words; @@ -525,9 +525,9 @@ LefParseEndStatement(f, match) void LefSkipSection(f, section) FILE *f; - char *section; + const char *section; { - char *token; + const char *token; int keyword, result; static const char * const end_section[] = { "END",