diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-06 18:31:02 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-06 18:31:02 +0100 |
commit | d06445c29b5f398d496c164b7da2d236be042f32 (patch) | |
tree | 4fd348e7ca334542b5e145174c4849339520f683 | |
parent | e66fc019fddbef87078850dab2d22c986e25e39e (diff) | |
download | rvnit-d06445c29b5f398d496c164b7da2d236be042f32.tar.gz rvnit-d06445c29b5f398d496c164b7da2d236be042f32.tar.xz rvnit-d06445c29b5f398d496c164b7da2d236be042f32.zip |
char is enough for state
-rw-r--r-- | rvnit.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/rvnit.c b/rvnit.c index 4710a34..e13867f 100644 --- a/rvnit.c +++ b/rvnit.c @@ -24,6 +24,12 @@ // ## not truly portable :/ #define LOG(fmt, ...) dprintf(selflogfd[1], fmt "\n", ## __VA_ARGS__); +enum { + UNDEF, + UP, + DOWN, +}; + struct entry { char level; char name[62]; @@ -33,11 +39,7 @@ struct entry { int logfd[2]; time_t start; int status; - enum { - UNDEF, - UP, - DOWN, - } state; + char state; }; struct entry services[MAX_SV]; |