diff mbox series

[2/3] connection: Rename 'del_routes'.

Message ID 20231129062109.1270106-3-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series Rename 'disable_gateway' and 'del_routes' | expand

Commit Message

Grant Erickson Nov. 29, 2023, 6:21 a.m. UTC
This renames 'del_routes' as 'del_gateway_routes' to align with the
revised name of its sole caller, 'del_gateway_routes_if_active'.
---
 src/connection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/connection.c b/src/connection.c
index 547a47cf8b6f..23adf570120a 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -567,7 +567,7 @@  static void set_vpn_routes(struct gateway_data *new_gateway,
 	}
 }
 
-static int del_routes(struct gateway_data *data,
+static int del_gateway_routes(struct gateway_data *data,
 			enum connman_ipconfig_type type)
 {
 	int status4 = 0, status6 = 0;
@@ -640,7 +640,7 @@  static int del_gateway_routes_if_active(struct gateway_data *data,
 	DBG("type %d active %d", type, active);
 
 	if (active)
-		return del_routes(data, type);
+		return del_gateway_routes(data, type);
 
 	return 0;
 }