cmocka: Cast correctly to errno type
authorAndreas Schneider <asn@cryptomilk.org>
Wed, 11 Feb 2015 10:20:08 +0000 (11:20 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 11 Feb 2015 16:26:30 +0000 (17:26 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c

index 8cb31ea..611229b 100644 (file)
@@ -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);
         }