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:
parent
9d7c65294f
commit
81ae0a7d1b
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue