use restrict everywhere it's required by c99 and/or posix 2008
[musl] / src / stat / statvfs.c
index 11ad754..637bf82 100644 (file)
@@ -34,12 +34,12 @@ static void fixup(struct statvfs *out, const struct statfs *in)
        out->f_files = in->f_files;
        out->f_ffree = in->f_ffree;
        out->f_favail = 0;
-       out->f_fsid = in->f_fsid.val[0];
+       out->f_fsid = in->f_fsid.__val[0];
        out->f_flag = in->f_flags;
        out->f_namemax = in->f_namelen;
 }
 
-int statvfs(const char *path, struct statvfs *buf)
+int statvfs(const char *restrict path, struct statvfs *restrict buf)
 {
        struct statfs kbuf;
        if (__statfs(path, &kbuf)<0) return -1;