]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Marked help() with noreturn attribute.
authorTimo Sirainen <tss@iki.fi>
Fri, 11 Jun 2010 23:23:43 +0000 (00:23 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 11 Jun 2010 23:23:43 +0000 (00:23 +0100)
--HG--
branch : HEAD

src/doveadm/doveadm.c
src/doveadm/doveadm.h

index 79478c52187d91b1dde7e19c28aa7075c15637c5..76d9a474c9814346431efc1084eba8d554b558fa 100644 (file)
@@ -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)
index 9c0318fa3a6b31eef2086b84447e1b6a1477e21d..f5ab19a11b6016e24744cb7db459748ed1639e03 100644 (file)
@@ -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);