1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Minor cleanup

Simplier and more readable char pointer math.
This commit is contained in:
Zdenek Kabelac 2012-01-20 11:01:56 +00:00
parent 18b3d24692
commit 9ab9d4ac0a

View File

@ -256,8 +256,8 @@ static int _compare_paths(const char *path0, const char *path1)
strncpy(p0, path0, PATH_MAX); strncpy(p0, path0, PATH_MAX);
strncpy(p1, path1, PATH_MAX); strncpy(p1, path1, PATH_MAX);
s0 = &p0[0] + 1; s0 = p0 + 1;
s1 = &p1[0] + 1; s1 = p1 + 1;
/* /*
* If we reach here, both paths are the same length. * If we reach here, both paths are the same length.