From 74114cb6714d71f2e48c213f78e6316d3b83733c Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Thu, 21 Jun 2018 20:51:58 +0700 Subject: [PATCH] snmp_agent: Try to fix tests This adressed to fix Solaris 10 builds. Issue: #2814 --- src/snmp_agent_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snmp_agent_test.c b/src/snmp_agent_test.c index bd500fce..581f33d3 100644 --- a/src/snmp_agent_test.c +++ b/src/snmp_agent_test.c @@ -145,9 +145,9 @@ DEF_TEST(format_name_regex_index) { snmp_varlist_add_variable(&index_list_tmp, NULL, 0, ASN_OCTET_STR, (const u_char *)plugin_inst, strlen(plugin_inst)); snmp_varlist_add_variable(&index_list_tmp, NULL, 0, ASN_INTEGER, - (const u_char *)&vcpu, 1); + (const u_char *)&vcpu, sizeof(vcpu)); snmp_varlist_add_variable(&index_list_tmp, NULL, 0, ASN_INTEGER, - (const u_char *)&cpu, 1); + (const u_char *)&cpu, sizeof(cpu)); build_oid_noalloc(index_oid.oid, sizeof(index_oid.oid), &index_oid.oid_len, NULL, 0, index_list_tmp); -- 2.11.0