From 9e8dec188d55ca1f0a3b33acab702ced8ed07a18 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 5 Nov 2017 00:09:50 +0100 Subject: Work on changing style, and an important typo fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-respawn.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/mds-respawn.h') diff --git a/src/mds-respawn.h b/src/mds-respawn.h index fb0e4fd..d1acd67 100644 --- a/src/mds-respawn.h +++ b/src/mds-respawn.h @@ -29,27 +29,27 @@ /** * The server has not started yet */ -#define UNBORN 0 +#define UNBORN 0 /** * The server is up and running */ -#define ALIVE 1 +#define ALIVE 1 /** * The server has crashed and will be respawn momentarily */ -#define DEAD 2 +#define DEAD 2 /** * The server crashed too fast, it will only respawn if SIGUSR2 is received */ -#define DEAD_AND_BURIED 3 +#define DEAD_AND_BURIED 3 /** * The server has exited successfully, it will never be respawn again */ -#define CREMATED 4 +#define CREMATED 4 @@ -59,7 +59,7 @@ * @param VALUE:int The state * @return :int Whether the state is value */ -#define validate_state(VALUE) ((UNBORN <= VALUE) && (VALUE <= CREMATED)) +#define validate_state(VALUE) (UNBORN <= (VALUE) && (VALUE) <= CREMATED) @@ -68,21 +68,21 @@ */ typedef struct server_state { - /** - * The server's process ID - */ - pid_t pid; - - /** - * The server's state - */ - int state; - - /** - * The time (monotonic) the server started - */ - struct timespec started; - + /** + * The server's process ID + */ + pid_t pid; + + /** + * The server's state + */ + int state; + + /** + * The time (monotonic) the server started + */ + struct timespec started; + } server_state_t; -- cgit v1.2.3-70-g09d2