From bfeafb1b80c3d2416a2b15c27c96ae6379a11287 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Tue, 19 Jun 2018 15:25:06 +0700 Subject: [PATCH] snmp_agent: Try to fix tests This adressed to fix Solaris 10 builds. Closes: #2814 --- src/snmp_agent_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; -- 2.11.0