From 6bccbef0d4c488b37935337b4fb1339e4ca11924 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sat, 12 Oct 2024 08:43:01 +0100 Subject: [PATCH] path.c: PaSubsWD() constify and no prototype exists This function does not appear used across the codebase. No prototype exists in utils.h --- utils/path.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/path.c b/utils/path.c index c3bed466..35df93ae 100644 --- a/utils/path.c +++ b/utils/path.c @@ -996,15 +996,17 @@ PaOpen(file, mode, ext, path, library, pRealName) char * PaSubsWD(path, newWD) -char *path; /* Path in which to substitute. */ -char *newWD; /* New working directory to be used. Must +const char *path; /* Path in which to substitute. */ +const char *newWD; /* New working directory to be used. Must * end in a slash. */ { #define NEWPATHSIZE 1000 static char newPath[NEWPATHSIZE]; - char *pOld, *pNew, *pWD; + const char *pOld; + char *pNew; + const char *pWD; int spaceLeft; pOld = path;