Re: [PATCH 1/2] hw/s390x/ccw: Replace basename() with g_path_get_basename()

2024-01-02 Thread Cédric Le Goater
On 12/21/23 18:19, Zhao Liu wrote: From: Zhao Liu g_path_get_basename() is a portable utility function that has the advantage of not modifing the string argument, so it should be preferred over basename(). And also to avoid potential compile breakage with the Musl C library similar to [1],

[PATCH 1/2] hw/s390x/ccw: Replace basename() with g_path_get_basename()

2023-12-21 Thread Zhao Liu
From: Zhao Liu g_path_get_basename() is a portable utility function that has the advantage of not modifing the string argument, so it should be preferred over basename(). And also to avoid potential compile breakage with the Musl C library similar to [1], replace basename() with