Răsfoiți Sursa

Update xattr.rs

petevine 10 ani în urmă
părinte
comite
734c5084ba
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      src/feature/xattr.rs

+ 3 - 3
src/feature/xattr.rs

@@ -215,7 +215,7 @@ mod lister {
             };
 
             unsafe {
-                listxattr(c_path.as_ptr(), ptr::null_mut(), 0)
+                listxattr(c_path.as_ptr() as *const _, ptr::null_mut(), 0)
             }
         }
 
@@ -227,7 +227,7 @@ mod lister {
 
             unsafe {
                 listxattr(
-                    c_path.as_ptr(),
+                    c_path.as_ptr() as *const _,
                     buf.as_mut_ptr() as *mut c_char,
                     bufsize as size_t
                 )
@@ -242,7 +242,7 @@ mod lister {
 
             unsafe {
                 getxattr(
-                    c_path.as_ptr(),
+                    c_path.as_ptr() as *const _,
                     buf.as_ptr() as *const c_char,
                     ptr::null_mut(), 0
                 )