Explicitly cast major() and minor() to uints
On FreeBSD, the major() and the minor() macros return ints instead of uints.
parent
ba0e1895
On FreeBSD, the major() and the minor() macros return ints instead of uints.
mentioned in commit 7164ed52