projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aa3318
)
cmocka: Cast correctly to errno type
author
Andreas Schneider
<asn@cryptomilk.org>
Wed, 11 Feb 2015 10:20:08 +0000
(11:20 +0100)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/src/cmocka.c
b/src/cmocka.c
index
8cb31ea
..
611229b
100644
(file)
--- 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);
}