napatech: Use proper parser for type

This commit uses the proper parser call for the value being parsed.
pull/5321/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent 45b055aca5
commit 67529bd25a

@ -931,7 +931,7 @@ int NapatechGetStreamConfig(NapatechStreamConfig stream_config[])
"Napatech range and individual specifiers cannot be combined."); "Napatech range and individual specifiers cannot be combined.");
} }
stream_spec = CONFIG_SPECIFIER_INDIVIDUAL; stream_spec = CONFIG_SPECIFIER_INDIVIDUAL;
if (StringParseUint16(&stream_config[instance_cnt].stream_id, if (StringParseUint8(&stream_config[instance_cnt].stream_id,
10, 0, (const char *)stream->val) < 0) { 10, 0, (const char *)stream->val) < 0) {
FatalError(SC_ERR_INVALID_VALUE, "Napatech invalid " FatalError(SC_ERR_INVALID_VALUE, "Napatech invalid "
"stream id: '%s'", stream->val); "stream id: '%s'", stream->val);

Loading…
Cancel
Save