summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-08-21 15:16:32 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-08-23 14:37:38 +0200
commit449c09201030cfb18baf8481430bc150e43f5f07 (patch)
treeb8ee5cb62b584133bb530ea0a840853820d4eca4
parent90191e6ff2d156abceebafa342ec34274b6bd22a (diff)
downloadlvm2-449c09201030cfb18baf8481430bc150e43f5f07.zip
lvm2-449c09201030cfb18baf8481430bc150e43f5f07.tar.gz
lvm2-449c09201030cfb18baf8481430bc150e43f5f07.tar.xz
cleanup: use static char[] array
-rw-r--r--lib/device/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/device/device.c b/lib/device/device.c
index 3e5e2a4..a87ae7f 100644
--- a/lib/device/device.c
+++ b/lib/device/device.c
@@ -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;