Mercurial > dovecot > core-2.2
diff src/config/main.c @ 14682:d0d7b810646b
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 Jun 2012 01:14:03 +0300 |
parents | c93ca5e46a8a |
children | 8c003fe6f5a6 |
line wrap: on
line diff
--- a/src/config/main.c Mon Jun 25 00:01:59 2012 +0300 +++ b/src/config/main.c Mon Jun 25 01:14:03 2012 +0300 @@ -11,7 +11,7 @@ static void client_connected(struct master_service_connection *conn) { master_service_client_connection_accept(conn); - config_connection_create(conn->fd); + (void)config_connection_create(conn->fd); } int main(int argc, char *argv[])