From 894127b7e947dbf049eb71c7498395afb34c092c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 11 Jun 2013 09:41:11 +0200 Subject: [PATCH 1/1] examples: Fix build warning in waiter_test. --- example/chef_wrap/waiter_test_wrap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/chef_wrap/waiter_test_wrap.c b/example/chef_wrap/waiter_test_wrap.c index f65d5de..1fa930b 100644 --- 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: -- 2.34.1