1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: use static char[] array

This commit is contained in:
Zdenek Kabelac 2012-08-21 15:16:32 +02:00
parent 90191e6ff2
commit 449c092010

View File

@ -361,7 +361,7 @@ static unsigned long _dev_topology_attribute(const char *attribute,
const char *sysfs_dir,
struct device *dev)
{
const char *sysfs_fmt_str = "%s/dev/block/%d:%d/%s";
static const char sysfs_fmt_str[] = "%s/dev/block/%d:%d/%s";
char path[PATH_MAX+1], buffer[64];
FILE *fp;
struct stat info;