Re: [PATCH 2/2] hw/s390x/ccw: Replace dirname() with g_path_get_dirname()

2024-01-02 Thread Cédric Le Goater
On 12/21/23 18:19, Zhao Liu wrote: From: Zhao Liu As commit 3e015d815b3f ("use g_path_get_basename instead of basename") said, g_path_get_dirname() should be preferred over dirname() since the former is a portable utility function that has the advantage of not modifing the string argument.

[PATCH 2/2] hw/s390x/ccw: Replace dirname() with g_path_get_dirname()

2023-12-21 Thread Zhao Liu
From: Zhao Liu As commit 3e015d815b3f ("use g_path_get_basename instead of basename") said, g_path_get_dirname() should be preferred over dirname() since the former is a portable utility function that has the advantage of not modifing the string argument. Replace dirname() with