summaryrefslogtreecommitdiff
path: root/lib/libexpat/examples/element_declarations.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2024-11-12 20:33:39 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2024-11-12 20:33:39 +0000
commita6c6dbe4d7e62c2bdd1308242aec0d9e11cee5b8 (patch)
tree9f39d4764a6663bad4d4ac03cad6f7b58ee5b795 /lib/libexpat/examples/element_declarations.c
parentf170683aac7637bf94515fbaae2d48f3e9086811 (diff)
Update libexpat to version 2.6.4.
Relevant for OpenBSD are security fix #915, other changes #905 #902 #904 #317 #918 #914. Major library bump is necessary as new error constant has been added to a public header file. CVE-2024-50602 OK matthieu@ tb@ deraadt@
Diffstat (limited to 'lib/libexpat/examples/element_declarations.c')
-rw-r--r--lib/libexpat/examples/element_declarations.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libexpat/examples/element_declarations.c b/lib/libexpat/examples/element_declarations.c
index 7ce8544f6f0..d644b2ffa5e 100644
--- a/lib/libexpat/examples/element_declarations.c
+++ b/lib/libexpat/examples/element_declarations.c
@@ -15,6 +15,7 @@
Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
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>
Licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
@@ -127,15 +128,15 @@ dumpContentModelElement(const XML_Content *model, unsigned level,
}
// Node
- printf("[%u] type=%s(%d), quant=%s(%d)", (unsigned)(model - root),
- contentTypeName(model->type), model->type,
- contentQuantName(model->quant), model->quant);
+ printf("[%u] type=%s(%u), quant=%s(%u)", (unsigned)(model - root),
+ contentTypeName(model->type), (unsigned int)model->type,
+ contentQuantName(model->quant), (unsigned int)model->quant);
if (model->name) {
printf(", name=\"%" XML_FMT_STR "\"", model->name);
} else {
printf(", name=NULL");
}
- printf(", numchildren=%d", model->numchildren);
+ printf(", numchildren=%u", model->numchildren);
printf("\n");
}