[dovecot-cvs] dovecot/src/lib-imap imap-message-cache.c,1.22,1.23 imap-parser.c,1.16,1.17
cras at procontrol.fi
cras at procontrol.fi
Mon Oct 28 11:46:05 EET 2002
Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv13502/src/lib-imap
Modified Files:
imap-message-cache.c imap-parser.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: imap-message-cache.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-message-cache.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- imap-message-cache.c 27 Oct 2002 19:49:13 -0000 1.22
+++ imap-message-cache.c 28 Oct 2002 09:46:03 -0000 1.23
@@ -440,7 +440,7 @@
cache_fields(cache, field);
return msg->cached_envelope;
default:
- i_assert(0);
+ i_unreached();
}
return NULL;
Index: imap-parser.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-parser.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- imap-parser.c 25 Oct 2002 01:06:19 -0000 1.16
+++ imap-parser.c 28 Oct 2002 09:46:03 -0000 1.17
@@ -219,7 +219,7 @@
}
break;
default:
- i_assert(0);
+ i_unreached();
}
parser->cur_type = ARG_PARSE_NONE;
@@ -470,7 +470,7 @@
imap_parser_read_literal_data(parser, data, data_size);
break;
default:
- i_assert(0);
+ i_unreached();
}
return parser->cur_type == ARG_PARSE_NONE;
More information about the dovecot-cvs
mailing list