diff mbox series

[v2,25/60] service: Move 'set_error' forward declaration earlier in the source.

Message ID 20231221064007.2347566-26-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
This moves the 'set_error' forward declaration earlier in the source
such that it may be invoked by functions that precede its position
before this change.
---
 src/service.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/service.c b/src/service.c
index 6c898476627b..a51c1685b308 100644
--- a/src/service.c
+++ b/src/service.c
@@ -225,6 +225,8 @@  static void complete_online_check(struct connman_service *service,
 					int err);
 static bool service_downgrade_online_state(struct connman_service *service);
 static bool connman_service_is_default(const struct connman_service *service);
+static void set_error(struct connman_service *service,
+					enum connman_service_error error);
 static void clear_error(struct connman_service *service);
 
 struct find_data {
@@ -4538,9 +4540,6 @@  int __connman_service_check_passphrase(enum connman_service_security security,
 	return 0;
 }
 
-static void set_error(struct connman_service *service,
-					enum connman_service_error error);
-
 int __connman_service_set_passphrase(struct connman_service *service,
 					const char *passphrase)
 {