make type of st_dev explicitly dev_t in x86_64 stat.h
authorRich Felker <dalias@aerifal.cx>
Sat, 11 Jan 2014 16:20:01 +0000 (11:20 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 11 Jan 2014 16:20:01 +0000 (11:20 -0500)
otherwise it's unclear that it's correct. aside from that, it makes
for a gratuitous difference between the x86_64 header and the upcoming
x32 header.

arch/x86_64/bits/stat.h

index 214579616fdab8b7bc0b3363c46129bf7419f702..081237c32a6372f0ec7f8311bf0bf421912a03dd 100644 (file)
@@ -2,7 +2,7 @@
  * by the corresponding correctly-sized userspace types. */
 
 struct stat {
-       unsigned long st_dev;
+       dev_t st_dev;
        ino_t st_ino;
        nlink_t st_nlink;