parser.c: ParsSplit() constify (const char **remainder)

This commit is contained in:
Darryl L. Miles 2025-08-25 11:49:47 +01:00
parent 237699578f
commit b5687a9a73
3 changed files with 8 additions and 8 deletions

View File

@ -1101,7 +1101,7 @@ TxParseString_internal(
* event processed.
*/
{
char *remainder;
const char *remainder;
TxCommand *cmd;
if (event == NULL) event = &txLastEvent;

View File

@ -52,12 +52,12 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
*/
bool
ParsSplit(str, maxArgc, argc, argv, remainder)
char *str;
int maxArgc;
int *argc;
char **argv;
char **remainder;
ParsSplit(
char *str,
int maxArgc,
int *argc,
char **argv,
const char **remainder)
{
char **largv;
char *newstrp;

View File

@ -70,7 +70,7 @@ extern int PaEnum(const char *path, const char *file, int (*proc)(), ClientData
extern int paVisitProcess();
extern void SetNoisyInt(int *parm, const char *valueS, FILE *file);
extern void SetNoisyDI(dlong *parm, const char *valueS, FILE *file);
extern bool ParsSplit();
extern bool ParsSplit(char *str, int maxArgc, int *argc, char **argv, const char **remainder);
extern int SetNoisyBool(bool *parm, const char *valueS, FILE *file);