diff options
author | Cédric Le Goater <clg@redhat.com> | 2023-12-20 14:53:02 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2024-01-08 19:28:35 +0300 |
commit | 5f64bed67ca23976c0d00209559a35e61a6e1f96 (patch) | |
tree | 8f93178231abaa419f505e64e1d735274a160ec3 /fpu | |
parent | 0bf355e6ca947b119b5d6b91a349ec607a137d94 (diff) | |
download | qemu-5f64bed67ca23976c0d00209559a35e61a6e1f96.zip qemu-5f64bed67ca23976c0d00209559a35e61a6e1f96.tar.gz qemu-5f64bed67ca23976c0d00209559a35e61a6e1f96.tar.bz2 |
vfio/container: Replace basename with g_path_get_basename
g_path_get_basename() is a portable utility function that has the
advantage of not modifing the string argument. It also fixes a compile
breakage with the Musl C library reported in [1].
[1] https://lore.kernel.org/all/20231212010228.2701544-1-raj.khem@gmail.com/
Reported-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
(cherry picked from commit 213ae3ffda463c0503e39e0cf827511b5298c314)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'fpu')
0 files changed, 0 insertions, 0 deletions