summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/zbxsysinfo/aix/net.c18
-rw-r--r--src/libs/zbxsysinfo/common/common.c4
2 files changed, 18 insertions, 4 deletions
diff --git a/src/libs/zbxsysinfo/aix/net.c b/src/libs/zbxsysinfo/aix/net.c
index 12b22e32..c8c65ff2 100644
--- a/src/libs/zbxsysinfo/aix/net.c
+++ b/src/libs/zbxsysinfo/aix/net.c
@@ -42,3 +42,21 @@ int NET_IF_OUT(const char *cmd, const char *param, unsigned flags, AGENT_RESULT
return SYSINFO_RET_FAIL;
}
+int NET_TCP_LISTEN(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)
+{
+ assert(result);
+
+ init_result(result);
+
+ return SYSINFO_RET_FAIL;
+}
+
+int NET_IF_COLLISIONS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)
+{
+ assert(result);
+
+ init_result(result);
+
+ return SYSINFO_RET_FAIL;
+}
+
diff --git a/src/libs/zbxsysinfo/common/common.c b/src/libs/zbxsysinfo/common/common.c
index b5e935ae..f3fe4cc9 100644
--- a/src/libs/zbxsysinfo/common/common.c
+++ b/src/libs/zbxsysinfo/common/common.c
@@ -1618,8 +1618,6 @@ int CHECK_SERVICE(const char *cmd, const char *param, unsigned flags, AGENT_RESU
char service[MAX_STRING_LEN];
char ip[MAX_STRING_LEN];
char str_port[MAX_STRING_LEN];
- char tmp[MAX_STRING_LEN];
- char *s;
int ret;
int value_int;
@@ -1732,7 +1730,6 @@ int CHECK_SERVICE(const char *cmd, const char *param, unsigned flags, AGENT_RESU
int CHECK_PORT(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)
{
- char *c;
int port=0;
int value_int;
int ret;
@@ -1783,7 +1780,6 @@ int CHECK_PORT(const char *cmd, const char *param, unsigned flags, AGENT_RESULT
int CHECK_DNS(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)
{
- char *c;
int res;
char ip[MAX_STRING_LEN];
char zone[MAX_STRING_LEN];