return -1;
if (dstbuf)
- snprintf(dstbuf, size, "%s", o->name);
+ strlcpy(dstbuf, o->name, size);
return 0;
}
-int get_help_obj_list(__attribute__((unused)) cmdline_parse_token_hdr_t *tk,
+int get_help_obj_list(__rte_unused cmdline_parse_token_hdr_t *tk,
char *dstbuf, unsigned int size)
{
snprintf(dstbuf, size, "Obj-List");