diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-04-06 16:44:41 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-04-07 14:57:42 +0200 |
commit | c3db4ca8ed745f2aeb71cdc950d4b5e5bc468553 (patch) | |
tree | a34f70e19f6628a9495d359f4a21c8b87def8d51 /watchfrr/watchfrr.c | |
parent | watchfrr: Rename restart_phase_t to `enum restart_phase` (diff) | |
download | frr-c3db4ca8ed745f2aeb71cdc950d4b5e5bc468553.tar.xz frr-c3db4ca8ed745f2aeb71cdc950d4b5e5bc468553.zip |
watchfrr: Convert daemon_state_t to an enum instead of a typedef
Align watchfrr with our coding standard
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | watchfrr/watchfrr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c index c4c406399..3a5919ede 100644 --- a/watchfrr/watchfrr.c +++ b/watchfrr/watchfrr.c @@ -136,13 +136,13 @@ static struct global_state { .stop_command = DEFAULT_STOP_CMD, }; -typedef enum { +enum daemon_state { DAEMON_INIT, DAEMON_DOWN, DAEMON_CONNECTING, DAEMON_UP, DAEMON_UNRESPONSIVE -} daemon_state_t; +}; #define IS_UP(DMN) \ (((DMN)->state == DAEMON_UP) || ((DMN)->state == DAEMON_UNRESPONSIVE)) @@ -153,7 +153,7 @@ static const char *const state_str[] = { struct daemon { const char *name; - daemon_state_t state; + enum daemon_state state; int fd; struct timeval echo_sent; unsigned int connect_tries; |