Mercurial > dovecot > core-2.2
diff src/lmtp/lmtp-proxy.c @ 14920:a097ef0a9d6d
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch]
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 19 Aug 2012 14:21:37 +0300 |
parents | 6a0954d0ce09 |
children | 6d2a439a10a6 |
line wrap: on
line diff
--- a/src/lmtp/lmtp-proxy.c Sun Aug 19 14:01:15 2012 +0300 +++ b/src/lmtp/lmtp-proxy.c Sun Aug 19 14:21:37 2012 +0300 @@ -36,8 +36,8 @@ const char *mail_from; struct lmtp_proxy_settings set; - ARRAY_DEFINE(connections, struct lmtp_proxy_connection *); - ARRAY_DEFINE(rcpt_to, struct lmtp_proxy_recipient *); + ARRAY(struct lmtp_proxy_connection *) connections; + ARRAY(struct lmtp_proxy_recipient *) rcpt_to; unsigned int next_data_reply_idx; struct timeout *to_finish;