From a1b8786ae64c3bfeb92def5a7c11ed0aa1915358 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 19 Nov 2003 06:38:18 -0800 Subject: [PATCH] [PATCH] fix namedev.c to build with older version of gcc. --- namedev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/namedev.c b/namedev.c index 223fd6de..9a556cb8 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)) -- 2.39.5