Skip to content

Commit

Permalink
apply standard formatting for enum base type
Browse files Browse the repository at this point in the history
  • Loading branch information
james-knippes committed Oct 30, 2023
1 parent 0fe7ddb commit 33a2bc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/includes/control-cmds.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion src/includes/service-constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <control-datatypes.h>

/* 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,
Expand Down

0 comments on commit 33a2bc4

Please sign in to comment.