summaryrefslogtreecommitdiff
path: root/expat/lib/xmltok.c
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2022-10-21 20:53:23 -0400
committerSean McBride <sean@rogue-research.com>2022-11-01 18:54:12 -0400
commitc094e450a136ffdf4d3e128588b615008a35489e (patch)
tree51d3c4a652720e98d3c95ab1b7d6ebafdc232e45 /expat/lib/xmltok.c
parentfc594f380dd766ee363c44395b46f843465ac679 (diff)
downloadlibexpat-git-c094e450a136ffdf4d3e128588b615008a35489e.tar.gz
Fixed some clang -Wcast-qual warnings
Mostly added various missing consts, thus eliminating the casting away of constness. In a few cases, just removed unnecessary casts entirely.
Diffstat (limited to 'expat/lib/xmltok.c')
-rw-r--r--expat/lib/xmltok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c
index c4627935..8654d5a1 100644
--- a/expat/lib/xmltok.c
+++ b/expat/lib/xmltok.c
@@ -243,7 +243,7 @@ static int FASTCALL checkCharRefNumber(int);
#endif
#define SB_BYTE_TYPE(enc, p) \
- (((struct normal_encoding *)(enc))->type[(unsigned char)*(p)])
+ (((const struct normal_encoding *)(enc))->type[(unsigned char)*(p)])
#ifdef XML_MIN_SIZE
static int PTRFASTCALL