let's prefer "unsigned long" rather than "unsigned", in case there are archs that have 32bit int, but 64bit dev_t. (Also one cast was wrong anyway.) (cherry picked from commit a2a44444) (cherry picked from commit 86dcabfc)