Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Veksler <Mihails.Vekslers@zabbix.com>2018-04-26 17:25:20 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2018-04-26 17:25:20 +0300
commitd265c1ee5995d72c86a0211cd63e061e0f9373dd (patch)
treea58340d84884d5fdb9655613e5121a2b1311561e /tests/libs/zbxsysinfo
parent677019489a39de7fc0204a0ddc541f81cdccc9c4 (diff)
...G...... [ZBX-13781] fixed an uninitialised error string
Diffstat (limited to 'tests/libs/zbxsysinfo')
-rw-r--r--tests/libs/zbxsysinfo/common/WEB_PAGE_GET.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/libs/zbxsysinfo/common/WEB_PAGE_GET.c b/tests/libs/zbxsysinfo/common/WEB_PAGE_GET.c
index 19954005b76..313e021fa27 100644
--- a/tests/libs/zbxsysinfo/common/WEB_PAGE_GET.c
+++ b/tests/libs/zbxsysinfo/common/WEB_PAGE_GET.c
@@ -76,11 +76,24 @@ void zbx_mock_test_entry(void **state)
int __wrap_zbx_tcp_connect(zbx_socket_t *s, const char *source_ip, const char *ip, unsigned short port,
int timeout, unsigned int tls_connect, const char *tls_arg1, const char *tls_arg2)
{
+ ZBX_UNUSED(s);
+ ZBX_UNUSED(source_ip);
+ ZBX_UNUSED(ip);
+ ZBX_UNUSED(port);
+ ZBX_UNUSED(timeout);
+ ZBX_UNUSED(tls_connect);
+ ZBX_UNUSED(tls_arg1);
+ ZBX_UNUSED(tls_arg2);
+
return SUCCEED;
}
int __wrap_zbx_tcp_send_ext(zbx_socket_t *s, const char *data, size_t len, unsigned char flags, int timeout)
{
+ ZBX_UNUSED(s);
+ ZBX_UNUSED(flags);
+ ZBX_UNUSED(timeout);
+
http_req = data;
http_len = len;
return SUCCEED;
@@ -88,6 +101,9 @@ int __wrap_zbx_tcp_send_ext(zbx_socket_t *s, const char *data, size_t len, unsig
ssize_t __wrap_zbx_tcp_recv_raw_ext(zbx_socket_t *s, int timeout)
{
+ ZBX_UNUSED(s);
+ ZBX_UNUSED(timeout);
+
s->buffer = (char *)http_req;
s->buffer[http_len++] = '*'; /* workaround for zbx_rtrim */
s->buffer[http_len++] = '\0';
@@ -96,4 +112,5 @@ ssize_t __wrap_zbx_tcp_recv_raw_ext(zbx_socket_t *s, int timeout)
void __wrap_zbx_tcp_close(zbx_socket_t *s)
{
+ ZBX_UNUSED(s);
}