]> git.lizzy.rs Git - rust.git/commit
Remove unnecessary stat64 pointer casts
authorJosh Stone <jistone@redhat.com>
Mon, 25 Jun 2018 19:34:33 +0000 (12:34 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 25 Jun 2018 19:34:33 +0000 (12:34 -0700)
commit490f49fd2ab15ae25a6ffeae2de8f667a521f19d
tree76dd931fd5f828e8ac6ca857952cdecce9126863
parent8acec1f9d0b40dde142e6c26d7358b9ab232d2b4
Remove unnecessary stat64 pointer casts

In effect, these just casted `&mut stat64` to `*mut stat64`, twice.
That's harmless, but it masked a problem when this was copied to new
code calling `fstatat`, which takes a pointer to `struct stat`.  That
will be fixed by #51785, but let's remove the unnecessary casts here
too.
src/libstd/sys/unix/fs.rs