summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-11-19 06:38:18 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:06:25 -0700
commita1b8786ae64c3bfeb92def5a7c11ed0aa1915358 (patch)
treed64d002ba346c93417f6b1b9d402ab7d354f0e28
parent09e52d51264080fab7062a1b4a405e526f299bc7 (diff)
[PATCH] fix namedev.c to build with older version of gcc.
-rw-r--r--namedev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/namedev.c b/namedev.c
index 223fd6de1d..9a556cb83d 100644
--- a/namedev.c
+++ b/namedev.c
@@ -753,11 +753,12 @@ static void do_kernelname(struct sysfs_class_device *class_dev, struct udevice *
{
struct config_device *dev;
struct list_head *tmp;
+ int len;
strfieldcpy(udev->name, class_dev->name);
list_for_each(tmp, &config_device_list) {
dev = list_entry(tmp, struct config_device, node);
- int len = strlen(dev->name);
+ len = strlen(dev->name);
if (dev->name[len-1] == '*') {
len--;
if (strncmp(dev->name, class_dev->name, len))