common/mlx5: replace strsep with strtok_r
authorOphir Munk <ophirmu@mellanox.com>
Tue, 25 Aug 2020 09:31:04 +0000 (09:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commit3475aeaca7b0095a24a708650b4b7edb2631b8e0
tree586093139c9aa2fbc9ac55ac3e9aa4f6b9a9dc82
parent2cecd7f9747523ff415b0ed66fe6c4ff0b107a1f
common/mlx5: replace strsep with strtok_r

strsep() is a non-standardized API (by C or POSIX) and thus it is
non-portable between different operating systems. Replace it with
strtok_r() which is standardized by the C standard, and hence also by
POSIX.
The replacement occurs in the code that extracts individual PCI class
names (e.g. class=net:vdpa:foo:bar).

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/common/mlx5/mlx5_common_pci.c