Commit 00b26784 authored by David Gibson's avatar David Gibson

rfc822: Fix test bugs on 64-bit platforms

This fixes some format string related bugs that show up on 64-bit builds.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent ff912d69
......@@ -45,7 +45,7 @@ static void check_header(struct rfc822_msg *msg,
allocation_failure_check();
ok(hname.ptr && bytestring_eq(hname, bytestring_from_string(name)),
"Header name \"%.*s\"", hname.len, hname.ptr);
"Header name \"%.*s\"", (int)hname.len, hname.ptr);
hvalue = rfc822_header_raw_value(msg, h);
allocation_failure_check();
......
......@@ -89,7 +89,7 @@ static void check_folded_header(const char *buf, size_t len)
hunfold = rfc822_header_unfolded_value(msg, hdr);
allocation_failure_check();
ok(hunfold.len == strlen(UNFOLDED), "Unfolded length %d, should be %d",
ok(hunfold.len == strlen(UNFOLDED), "Unfolded length %zd, should be %zd",
hunfold.len, strlen(UNFOLDED));
ok1(memcmp(hunfold.ptr, UNFOLDED, hunfold.len) == 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment