diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-02-11 11:20:08 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-11 17:26:30 +0100 |
commit | 54a185516d4c1719e38b10a104560821b32fbad3 (patch) | |
tree | ba379b6b87af6279d8de925f088e87768de0ff91 | |
parent | 0aa331893f9ffeb40147b1448fee7467552d8c09 (diff) | |
download | cmocka-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.c | 2 |
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); } |