From: Pavel Rochnyack Date: Tue, 19 Jun 2018 08:25:06 +0000 (+0700) Subject: snmp_agent: Try to fix tests X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=bfeafb1b80c3d2416a2b15c27c96ae6379a11287;hp=b80c288a9f3f97b045a767fd0189f96b355dd3d0 snmp_agent: Try to fix tests This adressed to fix Solaris 10 builds. Closes: #2814 --- diff --git a/src/snmp_agent_test.c b/src/snmp_agent_test.c index 68389fa9..20537dda 100644 --- a/src/snmp_agent_test.c +++ b/src/snmp_agent_test.c @@ -663,9 +663,9 @@ DEF_TEST(get_token) { } DEF_TEST(tokenize) { - regmatch_t m[3] = {{5, 6}, /* "1" */ - {12, 13}, /* "2" */ - {19, 20}}; /* "3" */ + regmatch_t m[3] = {{(regoff_t)5, (regoff_t)6}, /* "1" */ + {(regoff_t)12, (regoff_t)13}, /* "2" */ + {(regoff_t)19, (regoff_t)20}}; /* "3" */ c_avl_tree_t *tokens = c_avl_create((int (*)(const void *, const void *))num_compare); const char input[] = "testA1-testB2-testC3";