From 449c09201030cfb18baf8481430bc150e43f5f07 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 21 Aug 2012 15:16:32 +0200 Subject: cleanup: use static char[] array --- lib/device/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/device/device.c b/lib/device/device.c index 3e5e2a41..a87ae7ff 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; -- cgit