[dovecot-cvs] dovecot/src/imap cmd-append.c,1.13,1.14 commands-util.c,1.8,1.9
cras at procontrol.fi
cras at procontrol.fi
Mon Oct 28 11:46:05 EET 2002
Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv13502/src/imap
Modified Files:
cmd-append.c commands-util.c
Log Message:
Added --enable-asserts (default) and fixed some warnings when building
without. Added i_unreached() to indicate supposedly unreachable code block
and changed a existing i_assert(0) calls to it. Removed return_if_fail() and
return_val_if_fail() macros, they're not useful.
Index: cmd-append.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-append.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- cmd-append.c 24 Oct 2002 00:15:38 -0000 1.13
+++ cmd-append.c 28 Oct 2002 09:46:02 -0000 1.14
@@ -56,7 +56,7 @@
*internal_date = args[2].data.str;
break;
default:
- i_assert(0);
+ i_unreached();
}
/* check that mailbox and message arguments are ok */
Index: commands-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/commands-util.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- commands-util.c 19 Oct 2002 14:51:59 -0000 1.8
+++ commands-util.c 28 Oct 2002 09:46:02 -0000 1.9
@@ -57,7 +57,7 @@
client_send_tagline(client, "NO Mailbox exists.");
break;
default:
- i_assert(0);
+ i_unreached();
}
return FALSE;
More information about the dovecot-cvs
mailing list