kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ab8b57e6d4c0c028444b474acbf9991c6f0d2613
parent a97e18bbe941b12187637b785615f65cf7381ac0
Author: Joris Vink <joris@coders.se>
Date:   Tue, 19 May 2015 09:57:54 +0200

Merge pull request #60 from QuentinPerez/add-noreturn

add noreturn attribute
Diffstat:
includes/kore.h | 2+-
src/cli.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/includes/kore.h b/includes/kore.h @@ -516,7 +516,7 @@ int kore_validator_check(struct http_request *, struct kore_validator *, void *); struct kore_validator *kore_validator_lookup(const char *); -void fatal(const char *, ...); +void fatal(const char *, ...) __attribute__((noreturn)); void kore_debug_internal(char *, int, const char *, ...); u_int16_t net_read16(u_int8_t *); diff --git a/src/cli.c b/src/cli.c @@ -80,7 +80,7 @@ struct cfile { TAILQ_HEAD(cfile_list, cfile); -static void cli_fatal(const char *, ...); +static void cli_fatal(const char *, ...) __attribute__((noreturn)); static void cli_file_close(int); static void cli_run_kore(void *);