make setup_build_files() argument const

This commit is contained in:
anon 2024-11-15 19:13:17 +01:00
parent b9d494600e
commit 29645c1632
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ static bool samelist(FILE *oldrefs, char **names, int count) {
}
/* create the file name(s) used for a new cross-referene */
void setup_build_filenames(char *reffile) {
void setup_build_filenames(const char * const reffile) {
char path[strlen(reffile)+10]; /* file pathname */
strcpy(path, reffile);

View File

@ -64,7 +64,7 @@ void build(void);
void free_newbuildfiles(void);
void opendatabase(void);
void rebuild(void);
void setup_build_filenames(char *reffile);
void setup_build_filenames(const char * const reffile);
void seek_to_trailer(FILE *f);
#endif /* CSCOPE_BUILD_H */