strrchr() preserves the const-ness of the argument, the argument is a const char*
so the return value should also be a const.
static void dpdk_stats_resolve_cnt_type(char *cnt_type, size_t cnt_type_len,
const char *cnt_name) {
static void dpdk_stats_resolve_cnt_type(char *cnt_type, size_t cnt_type_len,
const char *cnt_name) {
type_end = strrchr(cnt_name, '_');
if ((type_end != NULL) && (strncmp(cnt_name, "rx_", strlen("rx_")) == 0)) {
type_end = strrchr(cnt_name, '_');
if ((type_end != NULL) && (strncmp(cnt_name, "rx_", strlen("rx_")) == 0)) {