summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-11 10:20:08 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-11 16:26:30 (GMT)
commit54a185516d4c1719e38b10a104560821b32fbad3 (patch)
treeba379b6b87af6279d8de925f088e87768de0ff91
parent0aa331893f9ffeb40147b1448fee7467552d8c09 (diff)
downloadcmocka-54a185516d4c1719e38b10a104560821b32fbad3.zip
cmocka-54a185516d4c1719e38b10a104560821b32fbad3.tar.gz
cmocka-54a185516d4c1719e38b10a104560821b32fbad3.tar.bz2
cmocka: Cast correctly to errno type
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/cmocka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index 8cb31ea..611229b 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -1379,7 +1379,7 @@ void _assert_return_code(const LargestIntegralType result,
if (result > valmax - 1) {
if (error > 0) {
cm_print_error("%s < 0, errno(%" PRIu64 "): %s\n",
- expression, error, strerror(error));
+ expression, error, strerror((int)error));
} else {
cm_print_error("%s < 0\n", expression);
}