From 33a2bc4da222c092dc48da0795871e331ed00a0f Mon Sep 17 00:00:00 2001 From: helican Date: Fri, 27 Oct 2023 08:12:00 +0200 Subject: [PATCH] apply standard formatting for enum base type --- src/includes/control-cmds.h | 6 +++--- src/includes/service-constants.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/includes/control-cmds.h b/src/includes/control-cmds.h index c3a5ac26..57067199 100644 --- a/src/includes/control-cmds.h +++ b/src/includes/control-cmds.h @@ -6,7 +6,7 @@ // Dinit control command packet types // Requests: -enum class cp_cmd :dinit_cptypes::cp_cmd_t { +enum class cp_cmd : dinit_cptypes::cp_cmd_t { // Query protocol version: QUERYVERSION = 0, @@ -71,7 +71,7 @@ enum class cp_cmd :dinit_cptypes::cp_cmd_t { }; // Replies: -enum class cp_rply :dinit_cptypes::cp_rply_t { +enum class cp_rply : dinit_cptypes::cp_rply_t { // Reply: ACK/NAK to request ACK = 50, NAK = 51, @@ -144,7 +144,7 @@ enum class cp_rply :dinit_cptypes::cp_rply_t { }; // Information (out-of-band): -enum class cp_info :dinit_cptypes::cp_info_t { +enum class cp_info : dinit_cptypes::cp_info_t { // Service event occurred (4-byte service handle, 1 byte event code) SERVICEEVENT = 100, }; diff --git a/src/includes/service-constants.h b/src/includes/service-constants.h index 036ceb2e..f533ce0a 100644 --- a/src/includes/service-constants.h +++ b/src/includes/service-constants.h @@ -6,7 +6,7 @@ #include /* Service states */ -enum class service_state_t :dinit_cptypes::srvstate_t { +enum class service_state_t : dinit_cptypes::srvstate_t { STOPPED, // service is not running. STARTING, // service is starting, and will start (or fail to start) in time. STARTED, // service is running,