* clean up

This commit is contained in:
Reinhard Pointner 2014-06-18 13:28:14 +00:00
parent 8e1ba28bbf
commit 397dd744df
1 changed files with 2 additions and 4 deletions

View File

@ -15,17 +15,15 @@ package net.filebot.mac.xattr;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.List; import java.util.List;
import com.sun.jna.Memory; import com.sun.jna.Memory;
import com.sun.jna.Pointer;
public class XAttrUtil { public class XAttrUtil {
public static List<String> listXAttr(String path) { public static List<String> listXAttr(String path) {
// get required buffer size // get required buffer size
long bufferLength = XAttr.INSTANCE.listxattr(path, Pointer.NULL, 0, 0); long bufferLength = XAttr.INSTANCE.listxattr(path, null, 0, 0);
if (bufferLength < 0) if (bufferLength < 0)
return null; return null;
@ -44,7 +42,7 @@ public class XAttrUtil {
public static String getXAttr(String path, String name) { public static String getXAttr(String path, String name) {
// get required buffer size // get required buffer size
long bufferLength = XAttr.INSTANCE.getxattr(path, name, Pointer.NULL, 0, 0, 0); long bufferLength = XAttr.INSTANCE.getxattr(path, name, null, 0, 0, 0);
if (bufferLength < 0) if (bufferLength < 0)
return null; return null;