git.samba.org
/
obnox
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
427ae82
)
examples: Fix build warning in waiter_test.
author
Andreas Schneider
<asn@cryptomilk.org>
Tue, 11 Jun 2013 07:41:11 +0000
(09:41 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 11 Jun 2013 07:41:11 +0000
(09:41 +0200)
example/chef_wrap/waiter_test_wrap.c
patch
|
blob
|
history
diff --git
a/example/chef_wrap/waiter_test_wrap.c
b/example/chef_wrap/waiter_test_wrap.c
index f65d5deab7e14ccf2510645950d879b5133fd274..1fa930b231083dec26a156f7cdd67073be3db6c3 100644
(file)
--- a/
example/chef_wrap/waiter_test_wrap.c
+++ b/
example/chef_wrap/waiter_test_wrap.c
@@
-61,21
+61,21
@@
int __wrap_chef_cook(const char *order, char **dish_out)
check_expected(order);
- knows_dish =
(bool) mock(
);
+ knows_dish =
mock_type(bool
);
if (knows_dish == false) {
return -1;
}
- has_ingredients =
(bool) mock(
);
+ has_ingredients =
mock_type(bool
);
if (has_ingredients == false) {
return -2;
}
- dish =
(char *) mock(
);
+ dish =
mock_ptr_type(char *
);
*dish_out = strdup(dish);
if (*dish_out == NULL) return ENOMEM;
- return mock
(
);
+ return mock
_type(int
);
}
/* Waiter return codes: