dovecot-2.0: doveadm: Marked help() with noreturn attribute.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jun 12 02:23:47 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/8f0eef1c6f17
changeset: 11526:8f0eef1c6f17
user: Timo Sirainen <tss at iki.fi>
date: Sat Jun 12 00:23:43 2010 +0100
description:
doveadm: Marked help() with noreturn attribute.
diffstat:
src/doveadm/doveadm.c | 3 ++-
src/doveadm/doveadm.h | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 93c3d6a46446 -r 8f0eef1c6f17 src/doveadm/doveadm.c
--- a/src/doveadm/doveadm.c Fri Jun 11 22:45:09 2010 +0100
+++ b/src/doveadm/doveadm.c Sat Jun 12 00:23:43 2010 +0100
@@ -106,7 +106,8 @@
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 -r 93c3d6a46446 -r 8f0eef1c6f17 src/doveadm/doveadm.h
--- a/src/doveadm/doveadm.h Fri Jun 11 22:45:09 2010 +0100
+++ b/src/doveadm/doveadm.h Sat Jun 12 00:23:43 2010 +0100
@@ -30,7 +30,7 @@
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);
More information about the dovecot-cvs
mailing list