bandb/bantool.c: misc cleanup for compiler warning

bantool.c:872:1: warning: function 'print_help' could be declared with
                 attribute 'noreturn' [-Wmissing-noreturn]
This commit is contained in:
Aaron Jones 2017-07-31 00:57:33 +00:00
parent 9d7c65294f
commit 81ae0a7d1b
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -123,7 +123,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);
@ -867,8 +867,8 @@ bt_smalldate(const char *string)
/** /**
* you are here ->. * you are here ->.
*/ */
void static void
print_help(int i_exit) print_help(const int i_exit)
{ {
fprintf(stderr, "bantool v.%s - the ircd-ratbox database tool.\n", BT_VERSION); fprintf(stderr, "bantool v.%s - the ircd-ratbox database tool.\n", BT_VERSION);
fprintf(stderr, "Copyright (C) 2008 Daniel J Reidy <dubkat@gmail.com>\n"); fprintf(stderr, "Copyright (C) 2008 Daniel J Reidy <dubkat@gmail.com>\n");
@ -899,5 +899,6 @@ print_help(int i_exit)
fprintf(stderr, fprintf(stderr,
" path : An optional directory containing old ratbox configs for import, or export.\n"); " path : An optional directory containing old ratbox configs for import, or export.\n");
fprintf(stderr, " If not specified, it looks in PREFIX/etc.\n"); fprintf(stderr, " If not specified, it looks in PREFIX/etc.\n");
exit(i_exit); exit(i_exit);
} }