From 5780be9eab8e72dcce9d8bcfe15e8e1d3ae6bed8 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 24 Aug 2006 10:25:34 +0200 Subject: rename major/minor variable to maj/min to avoid warning --- udev_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'udev_device.c') diff --git a/udev_device.c b/udev_device.c index b680246bf8..21af91b443 100644 --- a/udev_device.c +++ b/udev_device.c @@ -70,13 +70,13 @@ void udev_device_cleanup(struct udevice *udev) dev_t udev_device_get_devt(struct udevice *udev) { const char *attr; - unsigned int major, minor; + unsigned int maj, min; /* read it from sysfs */ attr = sysfs_attr_get_value(udev->dev->devpath, "dev"); if (attr != NULL) { - if (sscanf(attr, "%u:%u", &major, &minor) == 2) - return makedev(major, minor); + if (sscanf(attr, "%u:%u", &maj, &min) == 2) + return makedev(maj, min); } return makedev(0, 0); } -- cgit v1.2.3-54-g00ecf