X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Femail.c;h=376dd6a53dd6a61ad99e5df488671b0c573f5ccc;hp=d94c542ffcff7fef4b8b12d06117acc42920100d;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=358bf39b09f69220fc8e1b6c2fe98e5e185e3364 diff --git a/src/email.c b/src/email.c index d94c542f..376dd6a5 100644 --- a/src/email.c +++ b/src/email.c @@ -111,13 +111,13 @@ static const char *config_keys[] = {"SocketFile", "SocketGroup", "SocketPerms", static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); /* socket configuration */ -static char *sock_file = NULL; -static char *sock_group = NULL; +static char *sock_file; +static char *sock_group; static int sock_perms = S_IRWXU | S_IRWXG; static int max_conns = MAX_CONNS; /* state of the plugin */ -static int disabled = 0; +static int disabled; /* thread managing "client" connections */ static pthread_t connector = (pthread_t)0; @@ -134,7 +134,7 @@ static conn_list_t conns; static pthread_cond_t collector_available = PTHREAD_COND_INITIALIZER; /* collector threads */ -static collector_t **collectors = NULL; +static collector_t **collectors; static pthread_mutex_t available_mutex = PTHREAD_MUTEX_INITIALIZER; static int available_collectors;