dovecot-2.2: treewide - mass cleanup of 0 used to end a settings...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 27 18:19:09 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/f373df52082a
changeset: 17397:f373df52082a
user:      Phil Carmody <phil at dovecot.fi>
date:      Tue May 27 21:17:34 2014 +0300
description:
treewide - mass cleanup of 0 used to end a settings list
This also includes a change to the perl script which generates the
all-settings.c file.

Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/anvil/anvil-settings.c                       |  2 +-
 src/auth/auth-settings.c                         |  4 ++--
 src/config/config-settings.c                     |  2 +-
 src/config/settings-get.pl                       |  2 +-
 src/dict/dict-settings.c                         |  2 +-
 src/director/director-settings.c                 |  4 ++--
 src/dns/dns-client-settings.c                    |  2 +-
 src/doveadm/doveadm-settings.c                   |  2 +-
 src/imap-login/imap-login-settings.c             |  2 +-
 src/imap-urlauth/imap-urlauth-login-settings.c   |  2 +-
 src/imap-urlauth/imap-urlauth-settings.c         |  2 +-
 src/imap-urlauth/imap-urlauth-worker-settings.c  |  2 +-
 src/imap/imap-settings.c                         |  2 +-
 src/indexer/indexer-settings.c                   |  2 +-
 src/indexer/indexer-worker-settings.c            |  2 +-
 src/ipc/ipc-settings.c                           |  2 +-
 src/lmtp/lmtp-settings.c                         |  2 +-
 src/log/log-settings.c                           |  2 +-
 src/pop3-login/pop3-login-settings.c             |  2 +-
 src/pop3/pop3-settings.c                         |  2 +-
 src/replication/aggregator/aggregator-settings.c |  4 ++--
 src/replication/replicator/replicator-settings.c |  2 +-
 src/ssl-params/ssl-params-settings.c             |  2 +-
 src/stats/stats-settings.c                       |  4 ++--
 24 files changed, 28 insertions(+), 28 deletions(-)

diffs (truncated from 324 to 300 lines):

diff -r 03870eea2857 -r f373df52082a src/anvil/anvil-settings.c
--- a/src/anvil/anvil-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/anvil/anvil-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -17,7 +17,7 @@
 	&anvil_unix_listeners_array[1]
 };
 static buffer_t anvil_unix_listeners_buf = {
-	anvil_unix_listeners, sizeof(anvil_unix_listeners), { 0, }
+	anvil_unix_listeners, sizeof(anvil_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/auth/auth-settings.c
--- a/src/auth/auth-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/auth/auth-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -32,7 +32,7 @@
 	&auth_unix_listeners_array[5]
 };
 static buffer_t auth_unix_listeners_buf = {
-	auth_unix_listeners, sizeof(auth_unix_listeners), { 0, }
+	auth_unix_listeners, sizeof(auth_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
@@ -72,7 +72,7 @@
 	&auth_worker_unix_listeners_array[0]
 };
 static buffer_t auth_worker_unix_listeners_buf = {
-	auth_worker_unix_listeners, sizeof(auth_worker_unix_listeners), { 0, }
+	auth_worker_unix_listeners, sizeof(auth_worker_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/config/config-settings.c
--- a/src/config/config-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/config/config-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -15,7 +15,7 @@
 	&config_unix_listeners_array[0]
 };
 static buffer_t config_unix_listeners_buf = {
-	config_unix_listeners, sizeof(config_unix_listeners), { 0, }
+	config_unix_listeners, sizeof(config_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/config/settings-get.pl
--- a/src/config/settings-get.pl	Tue May 27 21:17:34 2014 +0300
+++ b/src/config/settings-get.pl	Tue May 27 21:17:34 2014 +0300
@@ -132,7 +132,7 @@
 }
 print "};\n";
 print "buffer_t config_all_services_buf = {\n";
-print "\tconfig_all_services, sizeof(config_all_services), { 0, }\n";
+print "\tconfig_all_services, sizeof(config_all_services), { NULL, }\n";
 print "};\n";
 
 print "const struct setting_parser_info *all_default_roots[] = {\n";
diff -r 03870eea2857 -r f373df52082a src/dict/dict-settings.c
--- a/src/dict/dict-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/dict/dict-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -14,7 +14,7 @@
 	&dict_unix_listeners_array[0]
 };
 static buffer_t dict_unix_listeners_buf = {
-	dict_unix_listeners, sizeof(dict_unix_listeners), { 0, }
+	dict_unix_listeners, sizeof(dict_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/director/director-settings.c
--- a/src/director/director-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/director/director-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -19,7 +19,7 @@
 };
 static buffer_t director_unix_listeners_buf = {
 	director_unix_listeners,
-	sizeof(director_unix_listeners), { 0, }
+	sizeof(director_unix_listeners), { NULL, }
 };
 static struct file_listener_settings director_fifo_listeners_array[] = {
 	{ "login/proxy-notify", 0, "", "" }
@@ -29,7 +29,7 @@
 };
 static buffer_t director_fifo_listeners_buf = {
 	director_fifo_listeners,
-	sizeof(director_fifo_listeners), { 0, }
+	sizeof(director_fifo_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/dns/dns-client-settings.c
--- a/src/dns/dns-client-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/dns/dns-client-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -15,7 +15,7 @@
 	&dns_client_unix_listeners_array[0]
 };
 static buffer_t dns_client_unix_listeners_buf = {
-	dns_client_unix_listeners, sizeof(dns_client_unix_listeners), { 0, }
+	dns_client_unix_listeners, sizeof(dns_client_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/doveadm/doveadm-settings.c
--- a/src/doveadm/doveadm-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/doveadm/doveadm-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -17,7 +17,7 @@
 	&doveadm_unix_listeners_array[0]
 };
 static buffer_t doveadm_unix_listeners_buf = {
-	doveadm_unix_listeners, sizeof(doveadm_unix_listeners), { 0, }
+	doveadm_unix_listeners, sizeof(doveadm_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/imap-login/imap-login-settings.c
--- a/src/imap-login/imap-login-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/imap-login/imap-login-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -19,7 +19,7 @@
 	&imap_login_inet_listeners_array[1]
 };
 static buffer_t imap_login_inet_listeners_buf = {
-	imap_login_inet_listeners, sizeof(imap_login_inet_listeners), { 0, }
+	imap_login_inet_listeners, sizeof(imap_login_inet_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/imap-urlauth/imap-urlauth-login-settings.c
--- a/src/imap-urlauth/imap-urlauth-login-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/imap-urlauth/imap-urlauth-login-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -19,7 +19,7 @@
 };
 static buffer_t imap_urlauth_login_unix_listeners_buf = {
 	imap_urlauth_login_unix_listeners,
-		sizeof(imap_urlauth_login_unix_listeners), { 0, }
+		sizeof(imap_urlauth_login_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/imap-urlauth/imap-urlauth-settings.c
--- a/src/imap-urlauth/imap-urlauth-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/imap-urlauth/imap-urlauth-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -18,7 +18,7 @@
 	&imap_urlauth_unix_listeners_array[0]
 };
 static buffer_t imap_urlauth_unix_listeners_buf = {
-	imap_urlauth_unix_listeners, sizeof(imap_urlauth_unix_listeners), { 0, }
+	imap_urlauth_unix_listeners, sizeof(imap_urlauth_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/imap-urlauth/imap-urlauth-worker-settings.c
--- a/src/imap-urlauth/imap-urlauth-worker-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/imap-urlauth/imap-urlauth-worker-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -19,7 +19,7 @@
 	&imap_urlauth_worker_unix_listeners_array[0]
 };
 static buffer_t imap_urlauth_worker_unix_listeners_buf = {
-	imap_urlauth_worker_unix_listeners, sizeof(imap_urlauth_worker_unix_listeners), { 0, }
+	imap_urlauth_worker_unix_listeners, sizeof(imap_urlauth_worker_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/imap/imap-settings.c
--- a/src/imap/imap-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/imap/imap-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -22,7 +22,7 @@
 	&imap_unix_listeners_array[0]
 };
 static buffer_t imap_unix_listeners_buf = {
-	imap_unix_listeners, sizeof(imap_unix_listeners), { 0, }
+	imap_unix_listeners, sizeof(imap_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/indexer/indexer-settings.c
--- a/src/indexer/indexer-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/indexer/indexer-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -17,7 +17,7 @@
 	&indexer_unix_listeners_array[0]
 };
 static buffer_t indexer_unix_listeners_buf = {
-	indexer_unix_listeners, sizeof(indexer_unix_listeners), { 0, }
+	indexer_unix_listeners, sizeof(indexer_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/indexer/indexer-worker-settings.c
--- a/src/indexer/indexer-worker-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/indexer/indexer-worker-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -15,7 +15,7 @@
 	&indexer_worker_unix_listeners_array[0]
 };
 static buffer_t indexer_worker_unix_listeners_buf = {
-	indexer_worker_unix_listeners, sizeof(indexer_worker_unix_listeners), { 0, }
+	indexer_worker_unix_listeners, sizeof(indexer_worker_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/ipc/ipc-settings.c
--- a/src/ipc/ipc-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/ipc/ipc-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -17,7 +17,7 @@
 	&ipc_unix_listeners_array[1]
 };
 static buffer_t ipc_unix_listeners_buf = {
-	ipc_unix_listeners, sizeof(ipc_unix_listeners), { 0, }
+	ipc_unix_listeners, sizeof(ipc_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/lmtp/lmtp-settings.c
--- a/src/lmtp/lmtp-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/lmtp/lmtp-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -22,7 +22,7 @@
 	&lmtp_unix_listeners_array[0]
 };
 static buffer_t lmtp_unix_listeners_buf = {
-	lmtp_unix_listeners, sizeof(lmtp_unix_listeners), { 0, }
+	lmtp_unix_listeners, sizeof(lmtp_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/log/log-settings.c
--- a/src/log/log-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/log/log-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -16,7 +16,7 @@
 };
 static buffer_t log_unix_listeners_buf = {
 	log_unix_listeners,
-	sizeof(log_unix_listeners), { 0, }
+	sizeof(log_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/pop3-login/pop3-login-settings.c
--- a/src/pop3-login/pop3-login-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/pop3-login/pop3-login-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -19,7 +19,7 @@
 	&pop3_login_inet_listeners_array[1]
 };
 static buffer_t pop3_login_inet_listeners_buf = {
-	pop3_login_inet_listeners, sizeof(pop3_login_inet_listeners), { 0, }
+	pop3_login_inet_listeners, sizeof(pop3_login_inet_listeners), { NULL, }
 };
 
 /* </settings checks> */
diff -r 03870eea2857 -r f373df52082a src/pop3/pop3-settings.c
--- a/src/pop3/pop3-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/pop3/pop3-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -22,7 +22,7 @@
 	&pop3_unix_listeners_array[0]
 };
 static buffer_t pop3_unix_listeners_buf = {
-	pop3_unix_listeners, sizeof(pop3_unix_listeners), { 0, }
+	pop3_unix_listeners, sizeof(pop3_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/replication/aggregator/aggregator-settings.c
--- a/src/replication/aggregator/aggregator-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/replication/aggregator/aggregator-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -14,7 +14,7 @@
 	&aggregator_unix_listeners_array[0]
 };
 static buffer_t aggregator_unix_listeners_buf = {
-	aggregator_unix_listeners, sizeof(aggregator_unix_listeners), { 0, }
+	aggregator_unix_listeners, sizeof(aggregator_unix_listeners), { NULL, }
 };
 
 static struct file_listener_settings aggregator_fifo_listeners_array[] = {
@@ -24,7 +24,7 @@
 	&aggregator_fifo_listeners_array[0]
 };
 static buffer_t aggregator_fifo_listeners_buf = {
-	aggregator_fifo_listeners, sizeof(aggregator_fifo_listeners), { 0, }
+	aggregator_fifo_listeners, sizeof(aggregator_fifo_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/replication/replicator/replicator-settings.c
--- a/src/replication/replicator/replicator-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/replication/replicator/replicator-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -16,7 +16,7 @@
 	&replicator_unix_listeners_array[1]
 };
 static buffer_t replicator_unix_listeners_buf = {
-	replicator_unix_listeners, sizeof(replicator_unix_listeners), { 0, }
+	replicator_unix_listeners, sizeof(replicator_unix_listeners), { NULL, }
 };
 /* </settings checks> */
 
diff -r 03870eea2857 -r f373df52082a src/ssl-params/ssl-params-settings.c
--- a/src/ssl-params/ssl-params-settings.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/ssl-params/ssl-params-settings.c	Tue May 27 21:17:34 2014 +0300
@@ -21,7 +21,7 @@
 	&ssl_params_unix_listeners_array[1]
 };
 static buffer_t ssl_params_unix_listeners_buf = {
-	ssl_params_unix_listeners, sizeof(ssl_params_unix_listeners), { 0, }
+	ssl_params_unix_listeners, sizeof(ssl_params_unix_listeners), { NULL, }


More information about the dovecot-cvs mailing list