Skip to contentSkip to conversation

LVM2/lib/uuid uuid.c

PATCH [email protected] 1 participant 1 message Aug 7, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2008-08-07 13:59:50

Modified files:
lib/uuid : uuid.c

Log message:
added const and saved relocation entry

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/uuid/uuid.c.diff?cvsroot=lvm2&r1=1.24&r2=1.25

lib/uuid/uuid.c +2 -2
@@ -20,7 +20,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-static char _c[] =
+static const char _c[] =
     "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#";
 
 static int _built_inverse;
@@ -110,7 +110,7 @@
  */
 static void _build_inverse(void)
 {
-	char *ptr;
+	const char *ptr;
 
 	if (_built_inverse)
 		return;