From f22ecda44affd037701a87bc1169aef458adaf10 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sat, 12 Oct 2024 09:27:45 +0100 Subject: [PATCH] set.c: SetNoisyBool() constify and add prototype --- utils/set.c | 2 +- utils/utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/set.c b/utils/set.c index fade49fe..769cdaca 100644 --- a/utils/set.c +++ b/utils/set.c @@ -98,7 +98,7 @@ SetNoisyInt(parm,valueS,file) int SetNoisyBool(parm,valueS,file) bool *parm; - char *valueS; + const char *valueS; FILE *file; { int n, which, result = -2; diff --git a/utils/utils.h b/utils/utils.h index 52d4f484..846507f8 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -84,7 +84,7 @@ extern gzFile PaLockZOpen(const char *file, const char *mode, const char *ext, c extern char *PaCheckCompressed(const char *filename); #endif -extern int SetNoisyBool(bool *, char *, FILE *); +extern int SetNoisyBool(bool *parm, const char *valueS, FILE *file); #ifdef FILE_LOCKS extern FILE *flock_open();