summaryrefslogtreecommitdiff
path: root/udev_device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-24 10:25:34 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-24 10:25:34 +0200
commit5780be9eab8e72dcce9d8bcfe15e8e1d3ae6bed8 (patch)
treea3bce8a5e8cd68067611b54934c17fe73ad87494 /udev_device.c
parentcea61f5c0303d7e2f0886688e789c091d7e4b9e2 (diff)
rename major/minor variable to maj/min to avoid warning
Diffstat (limited to 'udev_device.c')
-rw-r--r--udev_device.c6
1 files changed, 3 insertions, 3 deletions
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);
}