From: Timo Sirainen Date: Fri, 11 Jun 2010 23:23:43 +0000 (+0100) Subject: doveadm: Marked help() with noreturn attribute. X-Git-Tag: 2.0.beta6~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ce62fcb795a4bb57f1c003fc8cbd63bff6e5463;p=thirdparty%2Fdovecot%2Fcore.git doveadm: Marked help() with noreturn attribute. --HG-- branch : HEAD --- diff --git a/src/doveadm/doveadm.c b/src/doveadm/doveadm.c index 79478c5218..76d9a474c9 100644 --- a/src/doveadm/doveadm.c +++ b/src/doveadm/doveadm.c @@ -106,7 +106,8 @@ void usage(void) usage_to(stderr, ""); } -static void help_to(const struct doveadm_cmd *cmd, FILE *out) +static void ATTR_NORETURN +help_to(const struct doveadm_cmd *cmd, FILE *out) { fprintf(out, "doveadm %s %s\n", cmd->name, cmd->short_usage); if (cmd->long_usage != NULL) diff --git a/src/doveadm/doveadm.h b/src/doveadm/doveadm.h index 9c0318fa3a..f5ab19a11b 100644 --- a/src/doveadm/doveadm.h +++ b/src/doveadm/doveadm.h @@ -30,7 +30,7 @@ extern bool doveadm_verbose, doveadm_debug; void doveadm_register_cmd(const struct doveadm_cmd *cmd); void usage(void) ATTR_NORETURN; -void help(const struct doveadm_cmd *cmd); +void help(const struct doveadm_cmd *cmd) ATTR_NORETURN; const char *unixdate2str(time_t timestamp); const char *doveadm_plugin_getenv(const char *name);