diff options
author | greg@kroah.com <greg@kroah.com> | 2003-11-19 06:38:18 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:06:25 -0700 |
commit | a1b8786ae64c3bfeb92def5a7c11ed0aa1915358 (patch) | |
tree | d64d002ba346c93417f6b1b9d402ab7d354f0e28 | |
parent | 09e52d51264080fab7062a1b4a405e526f299bc7 (diff) |
[PATCH] fix namedev.c to build with older version of gcc.
-rw-r--r-- | namedev.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |