dovecot-2.2: various - 'static' sparse cleanup

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


details:   http://hg.dovecot.org/dovecot-2.2/rev/48d651b2e82a
changeset: 17402:48d651b2e82a
user:      Phil Carmody <phil at dovecot.fi>
date:      Tue May 27 21:17:34 2014 +0300
description:
various - 'static' sparse cleanup
Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/anvil/anvil-connection.c         |  2 +-
 src/config/config-connection.c       |  2 +-
 src/indexer/indexer-client.c         |  2 +-
 src/pop3-login/client-authenticate.c |  2 +-
 src/ssl-params/main.c                |  2 +-
 src/stats/mail-stats.c               |  2 +-
 src/stats/main.c                     |  2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diffs (84 lines):

diff -r 22f70e50c492 -r 48d651b2e82a src/anvil/anvil-connection.c
--- a/src/anvil/anvil-connection.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/anvil/anvil-connection.c	Tue May 27 21:17:34 2014 +0300
@@ -32,7 +32,7 @@
 	unsigned int fifo:1;
 };
 
-struct anvil_connection *anvil_connections = NULL;
+static struct anvil_connection *anvil_connections = NULL;
 
 static const char *const *
 anvil_connection_next_line(struct anvil_connection *conn)
diff -r 22f70e50c492 -r 48d651b2e82a src/config/config-connection.c
--- a/src/config/config-connection.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/config/config-connection.c	Tue May 27 21:17:34 2014 +0300
@@ -32,7 +32,7 @@
 	unsigned int handshaked:1;
 };
 
-struct config_connection *config_connections = NULL;
+static struct config_connection *config_connections = NULL;
 
 static const char *const *
 config_connection_next_line(struct config_connection *conn)
diff -r 22f70e50c492 -r 48d651b2e82a src/indexer/indexer-client.c
--- a/src/indexer/indexer-client.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/indexer/indexer-client.c	Tue May 27 21:17:34 2014 +0300
@@ -38,7 +38,7 @@
 	unsigned int tag;
 };
 
-struct indexer_client *clients = NULL;
+static struct indexer_client *clients = NULL;
 static unsigned int clients_count = 0;
 
 static void indexer_client_destroy(struct indexer_client *client);
diff -r 22f70e50c492 -r 48d651b2e82a src/pop3-login/client-authenticate.c
--- a/src/pop3-login/client-authenticate.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/pop3-login/client-authenticate.c	Tue May 27 21:17:34 2014 +0300
@@ -19,7 +19,7 @@
 
 #include <stdlib.h>
 
-const char *capability_string = POP3_CAPABILITY_REPLY;
+static const char *capability_string = POP3_CAPABILITY_REPLY;
 
 bool cmd_capa(struct pop3_client *client, const char *args ATTR_UNUSED)
 {
diff -r 22f70e50c492 -r 48d651b2e82a src/ssl-params/main.c
--- a/src/ssl-params/main.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/ssl-params/main.c	Tue May 27 21:17:34 2014 +0300
@@ -21,7 +21,7 @@
 };
 
 static ARRAY(int) delayed_fds;
-struct ssl_params *param;
+static struct ssl_params *param;
 static buffer_t *ssl_params;
 static struct timeout *to_startup;
 
diff -r 22f70e50c492 -r 48d651b2e82a src/stats/mail-stats.c
--- a/src/stats/mail-stats.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/stats/mail-stats.c	Tue May 27 21:17:34 2014 +0300
@@ -9,7 +9,7 @@
 	TYPE_TIMEVAL
 };
 
-struct mail_stats_parse_map {
+static struct mail_stats_parse_map {
 	const char *name;
 	unsigned int offset;
 	unsigned int size;
diff -r 22f70e50c492 -r 48d651b2e82a src/stats/main.c
--- a/src/stats/main.c	Tue May 27 21:17:34 2014 +0300
+++ b/src/stats/main.c	Tue May 27 21:17:34 2014 +0300
@@ -14,7 +14,7 @@
 #include "mail-ip.h"
 #include "client.h"
 
-struct stats_settings set;
+static struct stats_settings set;
 static struct mail_server_connection *mail_server_conn = NULL;
 
 static void client_connected(struct master_service_connection *conn)


More information about the dovecot-cvs mailing list