Skip to content

Commit 3b3128f

Browse files
committed
Core: changed the data type of a record index to match the data type of "count" function
1 parent 6e1f16b commit 3b3128f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/ipfixcol2/message_ipfix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ ipx_msg_ipfix_get_drec_cnt(const ipx_msg_ipfix_t *msg);
183183
* Otherwise (usually the index is out-of-range) returns NULL.
184184
*/
185185
IPX_API struct ipx_ipfix_record *
186-
ipx_msg_ipfix_get_drec(ipx_msg_ipfix_t *msg, uint16_t idx);
186+
ipx_msg_ipfix_get_drec(ipx_msg_ipfix_t *msg, uint32_t idx);
187187

188188
/**
189189
* \brief Cast from a source session message to a base message

src/core/message_ipfix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ ipx_msg_ipfix_get_drec_cnt(const ipx_msg_ipfix_t *msg)
128128
}
129129

130130
struct ipx_ipfix_record *
131-
ipx_msg_ipfix_get_drec(ipx_msg_ipfix_t *msg, uint16_t idx)
131+
ipx_msg_ipfix_get_drec(ipx_msg_ipfix_t *msg, uint32_t idx)
132132
{
133133
if (idx >= msg->rec_info.cnt_valid) {
134134
return NULL;

0 commit comments

Comments
 (0)