bandb/bantool: a function that calls exit(3) should be marked noreturn

This commit is contained in:
Aaron Jones 2016-06-01 20:34:51 +00:00
parent 856440bcb3
commit 2e032bf638
No known key found for this signature in database
GPG key ID: 6E854C0FAAD4CEA4

View file

@ -43,7 +43,6 @@
#include "rsdb.h" #include "rsdb.h"
#define EmptyString(x) ((x == NULL) || (*(x) == '\0')) #define EmptyString(x) ((x == NULL) || (*(x) == '\0'))
#define CheckEmpty(x) EmptyString(x) ? "" : x
#define BT_VERSION "0.4.1" #define BT_VERSION "0.4.1"
@ -119,7 +118,7 @@ static void db_reclaim_slack(void);
static void export_config(const char *conf, int id); static void export_config(const char *conf, int id);
static void import_config(const char *conf, int id); static void import_config(const char *conf, int id);
static void check_schema(void); static void check_schema(void);
static void print_help(int i_exit); static void print_help(int i_exit) __attribute__((noreturn));
static void wipe_schema(void); static void wipe_schema(void);
static void drop_dupes(const char *user, const char *host, const char *t); static void drop_dupes(const char *user, const char *host, const char *t);