1
0
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:
Milan Broz 2007-07-23 10:41:19 +00:00
parent 6c35e3c84c
commit 622703467c

View File

@ -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, '/');