path.c: PaSubsWD() constify and no prototype exists

This function does not appear used across the codebase.
No prototype exists in utils.h
This commit is contained in:
Darryl L. Miles 2024-10-12 08:43:01 +01:00 committed by Tim Edwards
parent c77d3852d5
commit 6bccbef0d4
1 changed files with 5 additions and 3 deletions

View File

@ -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;