X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev_db.c;h=f3c9509dcc8767c592af4ce17a0a010eca94143b;hb=77ab93ed972d3a83d8f48d434c7e28153ae6dab6;hp=99d73bd5afba9d11f4cb7feb1f650e8236ddba75;hpb=34bb5d057c99fa433392e0d5c17f604c8c111381;p=elogind.git diff --git a/udev_db.c b/udev_db.c index 99d73bd5a..f3c9509dc 100644 --- a/udev_db.c +++ b/udev_db.c @@ -1,6 +1,4 @@ /* - * udev_db.c - * * Copyright (C) 2003 Greg Kroah-Hartman * Copyright (C) 2004-2005 Kay Sievers * @@ -15,7 +13,7 @@ * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., - * 675 Mass Ave, Cambridge, MA 02139, USA. + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ @@ -122,7 +120,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 +174,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))