diff mbox series

[1/3] connection: Rename 'connection.c' to 'gateway.c'.

Message ID 20231213200001.1994492-2-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series connection: Rename 'connection.c' to 'gateway.c' | expand

Commit Message

Grant Erickson Dec. 13, 2023, 7:59 p.m. UTC
While historically, "connection.c" might have been a contextually-apt
name, today it might be better named "gateway.c" since its primary
focus is gateway routes and gateway route management.

Reflective of that, this renames "connection.c" to "gateway.c".
---
 Makefile.am                     | 2 +-
 src/{connection.c => gateway.c} | 0
 src/inet.c                      | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename src/{connection.c => gateway.c} (100%)
diff mbox series

Patch

diff --git a/Makefile.am b/Makefile.am
index 169b4bc66bd5..fad129c81b47 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,7 @@  src_connmand_SOURCES = $(gdhcp_sources) $(gweb_sources) $(stats_sources) \
 			$(backtrace_sources) $(builtin_sources) $(shared_sources) \
 			src/connman.ver src/main.c src/connman.h src/log.c \
 			src/error.c src/plugin.c src/task.c \
-			src/device.c src/network.c src/connection.c \
+			src/device.c src/network.c src/gateway.c \
 			src/manager.c src/service.c \
 			src/clock.c src/timezone.c src/agent-connman.c \
 			src/agent.c src/notifier.c src/provider.c \
diff --git a/src/connection.c b/src/gateway.c
similarity index 100%
rename from src/connection.c
rename to src/gateway.c
diff --git a/src/inet.c b/src/inet.c
index 31596a76a140..779ed7b2b995 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -3079,7 +3079,7 @@  bool connman_inet_is_ipv6_supported()
  * connmand and vpnd use inet.c, getting the route is via ipconfig and ipconfig
  * is different for both. Gateway is left here for possible future use.
  *
- * Gateway can be NULL and connection.c then assigns 0.0.0.0 address or ::,
+ * Gateway can be NULL and gateway.c then assigns 0.0.0.0 address or ::,
  * depending on IP family.
  */
 bool connman_inet_is_default_route(int family, const char *host,