From efce95fd84d6c88007c68833767d2cd895f88119 Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Tue, 9 Feb 2021 12:25:55 +0530 Subject: [PATCH] Fix cppcheck 'returnNonBoolInBooleanFunction' warnings Change-Id: Ia7654b61f1b7e6f1e6e1f1b8e243ead49b37999d Signed-off-by: Nishant Chaprana --- test/wifi_manager_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/wifi_manager_test.c b/test/wifi_manager_test.c index 4edc2ef..b11205c 100755 --- a/test/wifi_manager_test.c +++ b/test/wifi_manager_test.c @@ -917,7 +917,7 @@ static bool __test_found_change_ip_method_callback(wifi_manager_ap_h ap, void *u } if (rv != WIFI_MANAGER_ERROR_NONE) { g_free(ap_name); - return -1; + return false; } printf("Input DNS2 address (x: skip, 0: clear) : \n"); @@ -942,7 +942,7 @@ static bool __test_found_change_ip_method_callback(wifi_manager_ap_h ap, void *u } if (rv != WIFI_MANAGER_ERROR_NONE) { g_free(ap_name); - return -1; + return false; } } break; @@ -951,7 +951,7 @@ static bool __test_found_change_ip_method_callback(wifi_manager_ap_h ap, void *u address_type, WIFI_MANAGER_DNS_CONFIG_TYPE_DYNAMIC); if (rv != WIFI_MANAGER_ERROR_NONE) { g_free(ap_name); - return -1; + return false; } break; } @@ -1457,7 +1457,7 @@ static bool __test_found_specific_ap_callback(wifi_manager_ap_h ap, void *user_d rv = wifi_manager_ap_get_essid(ap, &ap_name); if (rv != WIFI_MANAGER_ERROR_NONE) { printf("Fail to get AP name [%s]\n", __test_convert_error_to_string(rv)); - return -1; + return false; } printf("[AP name] : %s\n", ap_name); -- 2.7.4