@@ -15,7 +15,7 @@ pub unsafe extern "C" fn fallocate64(
15
15
16
16
#[ inline]
17
17
pub unsafe extern "C" fn fgetpos64 ( stream : * mut :: FILE , pos : * mut :: fpos64_t ) -> :: c_int {
18
- :: fgetpos ( stream, pos. cast ( ) )
18
+ :: fgetpos ( stream, pos as * mut _ )
19
19
}
20
20
21
21
#[ inline]
@@ -43,12 +43,12 @@ pub unsafe extern "C" fn fseeko64(
43
43
44
44
#[ inline]
45
45
pub unsafe extern "C" fn fsetpos64 ( stream : * mut :: FILE , pos : * const :: fpos64_t ) -> :: c_int {
46
- :: fsetpos ( stream, pos. cast ( ) )
46
+ :: fsetpos ( stream, pos as * mut _ )
47
47
}
48
48
49
49
#[ inline]
50
50
pub unsafe extern "C" fn fstat64 ( fildes : :: c_int , buf : * mut :: stat64 ) -> :: c_int {
51
- :: fstat ( fildes, buf. cast ( ) )
51
+ :: fstat ( fildes, buf as * mut _ )
52
52
}
53
53
54
54
#[ inline]
@@ -58,17 +58,17 @@ pub unsafe extern "C" fn fstatat64(
58
58
buf : * mut :: stat64 ,
59
59
flag : :: c_int ,
60
60
) -> :: c_int {
61
- :: fstatat ( fd, path, buf. cast ( ) , flag)
61
+ :: fstatat ( fd, path, buf as * mut _ , flag)
62
62
}
63
63
64
64
#[ inline]
65
65
pub unsafe extern "C" fn fstatfs64 ( fd : :: c_int , buf : * mut :: statfs64 ) -> :: c_int {
66
- :: fstatfs ( fd, buf. cast ( ) )
66
+ :: fstatfs ( fd, buf as * mut _ )
67
67
}
68
68
69
69
#[ inline]
70
70
pub unsafe extern "C" fn fstatvfs64 ( fd : :: c_int , buf : * mut :: statvfs64 ) -> :: c_int {
71
- :: fstatvfs ( fd, buf. cast ( ) )
71
+ :: fstatvfs ( fd, buf as * mut _ )
72
72
}
73
73
74
74
#[ inline]
@@ -83,7 +83,7 @@ pub unsafe extern "C" fn ftruncate64(fd: ::c_int, length: ::off64_t) -> ::c_int
83
83
84
84
#[ inline]
85
85
pub unsafe extern "C" fn getrlimit64 ( resource : :: c_int , rlim : * mut :: rlimit64 ) -> :: c_int {
86
- :: getrlimit ( resource, rlim. cast ( ) )
86
+ :: getrlimit ( resource, rlim as * mut _ )
87
87
}
88
88
89
89
#[ inline]
@@ -93,7 +93,7 @@ pub unsafe extern "C" fn lseek64(fd: ::c_int, offset: ::off64_t, whence: ::c_int
93
93
94
94
#[ inline]
95
95
pub unsafe extern "C" fn lstat64 ( path : * const :: c_char , buf : * mut :: stat64 ) -> :: c_int {
96
- :: lstat ( path, buf. cast ( ) )
96
+ :: lstat ( path, buf as * mut _ )
97
97
}
98
98
99
99
#[ inline]
@@ -173,7 +173,7 @@ pub unsafe extern "C" fn prlimit64(
173
173
new_limit : * const :: rlimit64 ,
174
174
old_limit : * mut :: rlimit64 ,
175
175
) -> :: c_int {
176
- :: prlimit ( pid, resource, new_limit. cast ( ) , old_limit. cast ( ) )
176
+ :: prlimit ( pid, resource, new_limit as * mut _ , old_limit as * mut _ )
177
177
}
178
178
179
179
#[ inline]
@@ -198,7 +198,7 @@ pub unsafe extern "C" fn pwritev64(
198
198
199
199
#[ inline]
200
200
pub unsafe extern "C" fn readdir64 ( dirp : * mut :: DIR ) -> * mut :: dirent64 {
201
- :: readdir ( dirp) . cast ( )
201
+ :: readdir ( dirp) as * mut _
202
202
}
203
203
204
204
#[ inline]
@@ -207,7 +207,7 @@ pub unsafe extern "C" fn readdir64_r(
207
207
entry : * mut :: dirent64 ,
208
208
result : * mut * mut :: dirent64 ,
209
209
) -> :: c_int {
210
- :: readdir_r ( dirp, entry. cast ( ) , result. cast ( ) )
210
+ :: readdir_r ( dirp, entry as * mut _ , result as * mut _ )
211
211
}
212
212
213
213
#[ inline]
@@ -222,22 +222,22 @@ pub unsafe extern "C" fn sendfile64(
222
222
223
223
#[ inline]
224
224
pub unsafe extern "C" fn setrlimit64 ( resource : :: c_int , rlim : * const :: rlimit64 ) -> :: c_int {
225
- :: setrlimit ( resource, rlim. cast ( ) )
225
+ :: setrlimit ( resource, rlim as * mut _ )
226
226
}
227
227
228
228
#[ inline]
229
229
pub unsafe extern "C" fn stat64 ( pathname : * const :: c_char , statbuf : * mut :: stat64 ) -> :: c_int {
230
- :: stat ( pathname, statbuf. cast ( ) )
230
+ :: stat ( pathname, statbuf as * mut _ )
231
231
}
232
232
233
233
#[ inline]
234
234
pub unsafe extern "C" fn statfs64 ( pathname : * const :: c_char , buf : * mut :: statfs64 ) -> :: c_int {
235
- :: statfs ( pathname, buf. cast ( ) )
235
+ :: statfs ( pathname, buf as * mut _ )
236
236
}
237
237
238
238
#[ inline]
239
239
pub unsafe extern "C" fn statvfs64 ( path : * const :: c_char , buf : * mut :: statvfs64 ) -> :: c_int {
240
- :: statvfs ( path, buf. cast ( ) )
240
+ :: statvfs ( path, buf as * mut _ )
241
241
}
242
242
243
243
#[ inline]
0 commit comments