path.c: nextName() constify and add prototype

This commit is contained in:
Darryl L. Miles 2024-10-12 08:17:21 +01:00 committed by Tim Edwards
parent feef9730f3
commit bfb411d19f
2 changed files with 3 additions and 3 deletions

View File

@ -358,10 +358,10 @@ noexpand:
char *
nextName(ppath, file, dest, size)
char **ppath; /* Pointer to a pointer to the next
const char **ppath; /* Pointer to a pointer to the next
* entry in the path.
*/
char *file; /* Pointer to a file name. */
const char *file; /* Pointer to a file name. */
char *dest; /* Place to build result name. */
int size; /* Size of result area. */

View File

@ -47,7 +47,7 @@ extern int LookupFull(const char *, const char * const *);
extern int LookupStruct(const char *str, const LookupTable *table_start, int size);
extern int LookupStructFull(const char *str, const char * const *table, int size);
extern int PaExpand(const char **, char **, int);
extern char *nextName();
extern char *nextName(const char **ppath, const char *file, char *dest, int size);
extern FILE *PaOpen(char *, char *, char *, char *, char *, char **);
extern FILE *PaLockOpen(char *, char *, char *, char *, char *, char **, bool *, int *);
extern char *StrDup(char **, const char *);