mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
committed by
Tim Edwards
parent
c77d3852d5
commit
6bccbef0d4
+5
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user