path.c: PaAppend() constify and add prototype

This commit is contained in:
Darryl L. Miles 2024-10-12 08:10:39 +01:00 committed by Tim Edwards
parent fca164715e
commit 6a6f85862e
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ PaCheckCompressed(filename)
* newstring is the new string to append to the path.
*/
void
PaAppend(char **pathptr, char *newstring)
PaAppend(char **pathptr, const char *newstring)
{
int oldlength, addlength;
char *new;

View File

@ -58,7 +58,7 @@ extern bool StrIsInt(const char *);
extern bool StrIsNumeric(const char *);
/* C99 compat */
extern void PaAppend(char **, char *);
extern void PaAppend(char **pathptr, const char *newstring);
extern void ReduceFraction(int *, int *);
extern bool TechLoad(char *, SectionID);
extern void UndoFlush();