diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-08-24 10:25:34 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2006-08-24 10:25:34 +0200 |
commit | 5780be9eab8e72dcce9d8bcfe15e8e1d3ae6bed8 (patch) | |
tree | a3bce8a5e8cd68067611b54934c17fe73ad87494 /udev_db.c | |
parent | cea61f5c0303d7e2f0886688e789c091d7e4b9e2 (diff) |
rename major/minor variable to maj/min to avoid warning
Diffstat (limited to 'udev_db.c')
-rw-r--r-- | udev_db.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -122,7 +122,7 @@ int udev_db_get_device(struct udevice *udev, const char *devpath) struct stat stats; char filename[PATH_SIZE]; char line[PATH_SIZE]; - unsigned int major, minor; + unsigned int maj, min; char *bufline; char *buf; size_t bufsize; @@ -176,8 +176,8 @@ int udev_db_get_device(struct udevice *udev, const char *devpath) count = sizeof(line); memcpy(line, &bufline[2], count-2); line[count-2] = '\0'; - sscanf(line, "%u:%u", &major, &minor); - udev->devt = makedev(major, minor); + sscanf(line, "%u:%u", &maj, &min); + udev->devt = makedev(maj, min); break; case 'S': if (count > sizeof(line)) |