[dpdk-dev] [PATCH v8 6/6] devargs: parse bus info
Stephen Hemminger
stephen at networkplumber.org
Fri Jul 7 02:45:02 CEST 2017
On Fri, 7 Jul 2017 02:03:12 +0200
Gaetan Rivet <gaetan.rivet at 6wind.com> wrote:
> +static int
> +bus_name_cmp(const struct rte_bus *bus, const void *_name)
> +{
> + const char *name = _name;
> +
> + return strncmp(bus->name, name,
> + strlen(bus->name));
I don't think you need the _name variable hack. C will cast the argument to strncmp
More information about the dev
mailing list