diff mbox series

[v2,03/60] service: Rename 'online_check_enabled_check'.

Message ID 20231221064007.2347566-4-gerickson@nuovations.com (mailing list archive)
State Superseded
Headers show
Series Complete 'continuous' Online Check Mode Implementation. | expand

Commit Message

Grant Erickson Dec. 21, 2023, 6:39 a.m. UTC
Since 'online_check_enabled_check' is a predicate function, follow
prevailing function name style for such predicates by adding '_is_' to
the name.
---
 src/service.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/service.c b/src/service.c
index e5cd6fcd306a..87ef3b575b1f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1881,7 +1881,8 @@  static void cancel_online_check(struct connman_service *service,
  *  @sa start_wispr_if_connected
  *
  */
-static bool online_check_enabled_check(const struct connman_service *service)
+static bool online_check_is_enabled_check(
+		const struct connman_service *service)
 {
 	if (!connman_setting_get_bool("EnableOnlineCheck")) {
 		connman_info("Online check disabled. "
@@ -1927,7 +1928,7 @@  static void start_online_check(struct connman_service *service,
 		type,
 		__connman_ipconfig_type2string(type));
 
-	if (!online_check_enabled_check(service))
+	if (!online_check_is_enabled_check(service))
 		return;
 
 	if (type == CONNMAN_IPCONFIG_TYPE_IPV6 || check_proxy_setup(service)) {
@@ -2380,7 +2381,7 @@  static void start_wispr_if_connected(struct connman_service *service)
 		service,
 		connman_service_get_identifier(service));
 
-	if (!online_check_enabled_check(service))
+	if (!online_check_is_enabled_check(service))
 		return;
 
 	if (__connman_service_is_connected_state(service,