From 265ace5c9fa6f83e624640ab8a1165c612f7986e Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sat, 12 Oct 2024 08:43:34 +0100 Subject: [PATCH] path.c: PaEnum() constify and add prototype --- utils/path.c | 4 ++-- utils/utils.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/path.c b/utils/path.c index 35df93ae..e42f96d0 100644 --- a/utils/path.c +++ b/utils/path.c @@ -1095,8 +1095,8 @@ const char *newWD; /* New working directory to be used. Must int PaEnum(path, file, proc, cdata) - char *path; /* Search path */ - char *file; /* Each element of the search path is prepended to + const char *path; /* Search path */ + const char *file; /* Each element of the search path is prepended to * this file name and passed to the client. */ int (*proc)(); /* Client procedure */ diff --git a/utils/utils.h b/utils/utils.h index 68fa63f2..90b7b176 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -70,7 +70,7 @@ extern void niceabort(); extern void ShowRect(); extern void FindDisplay(); extern void ForkChildAdd(); -extern int PaEnum(); +extern int PaEnum(const char *path, const char *file, int (*proc)(), ClientData cdata); extern int paVisitProcess(); extern void SetNoisyInt(); extern void SetNoisyDI();