From 7e32487df2c7f8b26f3a66ca1d4fee767eff314e Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 1 Mar 2018 17:56:01 +0100 Subject: [PATCH] Fix compilation on Fedora rawhide --- src/umockdev-record.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/umockdev-record.vala b/src/umockdev-record.vala index 1ed4061..2104417 100644 --- a/src/umockdev-record.vala +++ b/src/umockdev-record.vala @@ -75,15 +75,15 @@ resolve (string dev) if (Posix.stat(dev, out st) != 0) exit_error("Cannot access device %s: %s", dev, strerror(errno)); - uint major = Posix.major(st.st_rdev); - uint minor = Posix.minor(st.st_rdev); + uint major_int = Posix.major(st.st_rdev); + uint minor_int = Posix.minor(st.st_rdev); string link; // character device? if (Posix.S_ISCHR(st.st_mode)) - link = "/sys/dev/char/%u:%u".printf(major, minor); + link = "/sys/dev/char/%u:%u".printf(major_int, minor_int); else if (Posix.S_ISBLK(st.st_mode)) - link = "/sys/dev/block/%u:%u".printf(major, minor); + link = "/sys/dev/block/%u:%u".printf(major_int, minor_int); else link = dev; -- 2.14.3