summaryrefslogtreecommitdiff
path: root/examples/element_declarations.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/element_declarations.c')
-rw-r--r--examples/element_declarations.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/element_declarations.c b/examples/element_declarations.c
index d644b2ffa5ea..d864cf70a2f7 100644
--- a/examples/element_declarations.c
+++ b/examples/element_declarations.c
@@ -16,6 +16,7 @@
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
Copyright (c) 2019 Zhongyuan Zhou <zhouzhongyuan@huawei.com>
Copyright (c) 2024 Hanno Böck <hanno@gentoo.org>
+ Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
Licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
@@ -82,7 +83,7 @@ stackPopFree(Stack *stackTop) {
return newStackTop;
}
-static char *
+static const char *
contentTypeName(enum XML_Content_Type contentType) {
switch (contentType) {
case XML_CTYPE_EMPTY:
@@ -102,7 +103,7 @@ contentTypeName(enum XML_Content_Type contentType) {
}
}
-static char *
+static const char *
contentQuantName(enum XML_Content_Quant contentQuant) {
switch (contentQuant) {
case XML_CQUANT_NONE: