Index: src/libs/zbxhistory/history_elastic.c
===================================================================
--- src/libs/zbxhistory/history_elastic.c	(revision 78830)
+++ src/libs/zbxhistory/history_elastic.c	(working copy)
@@ -205,19 +205,14 @@
 
 		if (0 != page.offset)
 		{
-			zabbix_log(LOG_LEVEL_ERR, "cannot get values from elasticsearch, HTTP error: %d,",
+			zabbix_log(LOG_LEVEL_ERR, "cannot get values from elasticsearch, HTTP error: %ld,",
 					" message: %s", http_code, page.data);
 		}
 		else
-		{
-			zabbix_log(LOG_LEVEL_ERR, "cannot get values from elasticsearch, HTTP error: %d",
-					http_code);
-		}
+			zabbix_log(LOG_LEVEL_ERR, "cannot get values from elasticsearch, HTTP error: %ld", http_code);
 	}
 	else
-	{
 		zabbix_log(LOG_LEVEL_ERR, "cannot get values from elasticsearch: %s", curl_easy_strerror(error));
-	}
 }
 
 /************************************************************************************
@@ -346,7 +341,7 @@
 	struct curl_slist	*curl_headers = NULL;
 	int			i, running, previous, msgnum;
 	CURLMsg			*msg;
-	zbx_vector_ptr_t		retries;
+	zbx_vector_ptr_t	retries;
 
 	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __function_name);
 
@@ -361,7 +356,7 @@
 
 	for (i = 0; i < writer.ifaces.values_num; i++)
 	{
-		zbx_history_iface_t		*hist = (zbx_history_iface_t *)writer.ifaces.values[i];
+		zbx_history_iface_t	*hist = (zbx_history_iface_t *)writer.ifaces.values[i];
 		zbx_elastic_data_t	*data = (zbx_elastic_data_t *)hist->data;
 
 		(void)curl_easy_setopt(data->handle, CURLOPT_HTTPHEADER, curl_headers);
@@ -499,7 +494,7 @@
 	zbx_elastic_data_t	*data = (zbx_elastic_data_t *)hist->data;
 	size_t			url_alloc = 0, url_offset = 0, id_alloc = 0, scroll_alloc = 0, scroll_offset = 0;
 	int			total, empty, ret;
-	CURLcode			err;
+	CURLcode		err;
 	struct zbx_json		query;
 	struct curl_slist	*curl_headers = NULL;
 	char			*scroll_id = NULL, *scroll_query = NULL;
@@ -643,8 +638,8 @@
 
 		/* scroll to the next page */
 		scroll_offset = 0;
-		zbx_snprintf_alloc(&scroll_query, &scroll_alloc, &scroll_offset, "{\"scroll\":\"10s\",\"scroll_id\":\"%s\"}\n",
-				scroll_id);
+		zbx_snprintf_alloc(&scroll_query, &scroll_alloc, &scroll_offset,
+				"{\"scroll\":\"10s\",\"scroll_id\":\"%s\"}\n", scroll_id);
 
 		curl_easy_setopt(data->handle, CURLOPT_POSTFIELDS, scroll_query);
 
@@ -706,10 +701,10 @@
 	const char	*__function_name = "elastic_add_values";
 
 	zbx_elastic_data_t	*data = (zbx_elastic_data_t *)hist->data;
-	int				i, num = 0;
-	ZBX_DC_HISTORY			*h;
-	struct zbx_json			json_idx, json;
-	size_t				buf_alloc = 0, buf_offset = 0;
+	int			i, num = 0;
+	ZBX_DC_HISTORY		*h;
+	struct zbx_json		json_idx, json;
+	size_t			buf_alloc = 0, buf_offset = 0;
 
 	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __function_name);
 
