summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2016-05-04 10:42:31 +0100
committerPaul Duffin <paulduffin@google.com>2016-05-04 11:25:45 +0100
commitcee23496d017f13eccc125e2ab7044de53dec8da (patch)
tree53aec2e4b018247b4aa0a23a8bd5a0db84e48312 /examples
parent718f25197aa07d995faedae79823b8778428c59c (diff)
downloadexpat-cee23496d017f13eccc125e2ab7044de53dec8da.tar.gz
Upgrade to expat 2.1.1
Modified the import_expat.sh script as the archive is now compressed using bzip2 instead of gzip and uses configure.ac instead of configure.in. Modified README.android to make the example command up to date with respect to the new archive format and also to ensure that it builds dependencies. All the remaining changes are straight from upstream. Bug: 27818751 Change-Id: Ia4d587e98a3f68b7133cdbcb0ca952e18fffcfe8
Diffstat (limited to 'examples')
-rw-r--r--examples/elements.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/elements.c b/examples/elements.c
index 6b8f8550..bc04b6b1 100644
--- a/examples/elements.c
+++ b/examples/elements.c
@@ -50,7 +50,7 @@ main(int argc, char *argv[])
XML_SetUserData(parser, &depth);
XML_SetElementHandler(parser, startElement, endElement);
do {
- int len = (int)fread(buf, 1, sizeof(buf), stdin);
+ size_t len = fread(buf, 1, sizeof(buf), stdin);
done = len < sizeof(buf);
if (XML_Parse(parser, buf, len, done) == XML_STATUS_ERROR) {
fprintf(stderr,