From c46543e0534d1ea72821ad9ecba1af898e4f626e Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 22 Sep 2024 00:43:26 +0200 Subject: [PATCH] tests: Add "const" in two places --- expat/tests/handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expat/tests/handlers.c b/expat/tests/handlers.c index 32ca5889..692f1986 100644 --- a/expat/tests/handlers.c +++ b/expat/tests/handlers.c @@ -1914,7 +1914,7 @@ accumulate_characters(void *userData, const XML_Char *s, int len) { void XMLCALL accumulate_attribute(void *userData, const XML_Char *name, const XML_Char **atts) { - CharData *storage = (CharData *)userData; + CharData *const storage = (CharData *)userData; UNUSED_P(name); /* Check there are attributes to deal with */ if (atts == NULL) @@ -1929,7 +1929,7 @@ accumulate_attribute(void *userData, const XML_Char *name, void XMLCALL ext_accumulate_characters(void *userData, const XML_Char *s, int len) { - ExtTest *test_data = (ExtTest *)userData; + ExtTest *const test_data = (ExtTest *)userData; accumulate_characters(test_data->storage, s, len); }