From 69df88520c7e52e663f00310ee8755d3a42f72db Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 31 Jan 2025 16:11:56 +0000 Subject: [PATCH] bplane: constify BPEnumInit() --- bplane/bpEnum.c | 4 ++-- bplane/bpOpaque.h | 2 +- bplane/bplane.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bplane/bpEnum.c b/bplane/bpEnum.c index c63a0e41..71bcb20d 100644 --- a/bplane/bpEnum.c +++ b/bplane/bpEnum.c @@ -50,9 +50,9 @@ */ void BPEnumInit(BPEnum *bpe, /* enum to initialize */ BPlane *bp, - Rect *area, /* search area */ + const Rect *area, /* search area */ int match, - char *id) /* for debugging */ + const char *id) /* for debugging */ { bool inside = FALSE; bpe->bpe_plane = bp; diff --git a/bplane/bpOpaque.h b/bplane/bpOpaque.h index c1796aec..5a013d59 100644 --- a/bplane/bpOpaque.h +++ b/bplane/bpOpaque.h @@ -182,7 +182,7 @@ typedef struct bpenum BPlane *bpe_plane; /* plane being searched */ Rect bpe_srchArea; /* area being searched */ int bpe_match; /* match criteria */ - char *bpe_id; /* for debug */ + const char *bpe_id; /* for debug */ int bpe_subBinMinX; int bpe_subBinMinY; /* consider subbinning * for bins bigger than this. diff --git a/bplane/bplane.h b/bplane/bplane.h index c5840d6f..4269e9a4 100644 --- a/bplane/bplane.h +++ b/bplane/bplane.h @@ -185,9 +185,9 @@ extern void BPEnumInit(BPEnum *bpe, /* this procedure initializes this * enumeration. */ BPlane *bp, /* bplane to search */ - Rect *area, /* area to search */ + const Rect *area, /* area to search */ int match, /* see below */ - char *id); /* for debugging */ + const char *id); /* for debugging */ /* match values */ /* enum all elements in the bplane (area arg must be null) */