1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

remove now-redundant slash-stripping

This commit is contained in:
Alasdair Kergon 2008-07-31 15:38:52 +00:00
parent 9125b72b15
commit bc9481770a
2 changed files with 3 additions and 4 deletions

View File

@ -21,7 +21,8 @@
static inline char *last_path_component(char const *name)
{
char const *slash = strrchr (name, '/');
char const *slash = strrchr(name, '/');
char const *res = slash ? slash + 1 : name;
return (char *) res;
return (char *)res;
}

View File

@ -1165,8 +1165,6 @@ int lvm2_main(int argc, char **argv, unsigned is_static)
_close_stray_fds();
base = last_path_component(argv[0]);
while (*base == '/')
base++;
if (strcmp(base, "lvm") && strcmp(base, "lvm.static") &&
strcmp(base, "initrd-lvm"))
alias = 1;