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:
parent
90191e6ff2
commit
449c092010
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user