mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Fix compilation warning in util.c.
This commit is contained in:
parent
6c35e3c84c
commit
622703467c
@ -16,6 +16,9 @@
|
|||||||
* Return the address of the last file name component of NAME.
|
* Return the address of the last file name component of NAME.
|
||||||
* If NAME ends in a slash, return the empty string.
|
* If NAME ends in a slash, return the empty string.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "lib.h"
|
||||||
|
|
||||||
char *last_path_component(char const *name)
|
char *last_path_component(char const *name)
|
||||||
{
|
{
|
||||||
char const *slash = strrchr (name, '/');
|
char const *slash = strrchr (name, '/');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user