From 9ab9d4ac0aca3dd79a89f442011c2e01a6c300ee Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 20 Jan 2012 11:01:56 +0000 Subject: [PATCH] Minor cleanup Simplier and more readable char pointer math. --- lib/device/dev-cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index a909c6f52..fb5361ef5 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -256,8 +256,8 @@ static int _compare_paths(const char *path0, const char *path1) strncpy(p0, path0, PATH_MAX); strncpy(p1, path1, PATH_MAX); - s0 = &p0[0] + 1; - s1 = &p1[0] + 1; + s0 = p0 + 1; + s1 = p1 + 1; /* * If we reach here, both paths are the same length.