Skip to contentSkip to conversation

LVM2/lib/device dev-cache.c

PATCH [email protected] 1 participant 1 message Jan 20, 2012

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-01-20 11:01:57

Modified files:
lib/device : dev-cache.c

Log message:
Minor cleanup

Simplier and more readable char pointer math.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/device/dev-cache.c.diff?cvsroot=lvm2&r1=1.69&r2=1.70

lib/device/dev-cache.c +2 -2
@@ -256,8 +256,8 @@
 
 	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.