diff --git a/src/config.c b/src/config.c index d9c3855..a5a31dd 100644 --- a/src/config.c +++ b/src/config.c @@ -356,7 +356,7 @@ static enum Status end(Parser *ctx) return STAT_OK; } -static int commands(Parser *ctx) +static enum Status commands(Parser *ctx) { newlines(ctx); diff --git a/src/server.c b/src/server.c index be0c5c3..f15d960 100644 --- a/src/server.c +++ b/src/server.c @@ -164,7 +164,7 @@ exit: return ret; } -static inline int run_server_script(char *script, size_t script_len, char *arg) +static inline RESULT run_server_script(char *script, size_t script_len, char *arg) { return run_script(script, script_len, NULL, NULL, NULL, NULL); } diff --git a/src/server.h b/src/server.h index 11a1034..50043ca 100644 --- a/src/server.h +++ b/src/server.h @@ -1,6 +1,8 @@ #ifndef SERVER_H #define SERVER_H +#include "result.h" + RESULT server_listen(const char *id_s); RESULT server_set_fifo_var(const char *id_s); RESULT server_clear(const char *id_s);