Disk (Android): fix build

This commit is contained in:
李通洲
2023-09-18 22:23:27 +08:00
parent 3714dfdca7
commit dbd6e45aba
+1 -3
View File
@@ -133,7 +133,7 @@ static void detectName(FFDisk* disk)
#ifdef __ANDROID__
static void detectType(FF_MAYBE_UNUSED const FFlist* devices, FFDisk* currentDisk, FF_MAYBE_UNUSED const char* options)
static void detectType(FF_MAYBE_UNUSED const FFlist* disks, FFDisk* currentDisk)
{
if(ffStrbufEqualS(&currentDisk->mountpoint, "/") || ffStrbufEqualS(&currentDisk->mountpoint, "/storage/emulated"))
currentDisk->type = FF_DISK_VOLUME_TYPE_REGULAR_BIT;
@@ -254,8 +254,6 @@ const char* ffDetectDisksImpl(FFlist* disks)
if(mountsFile == NULL)
return "setmntent(\"/proc/mounts\", \"r\") == NULL";
FF_LIST_AUTO_DESTROY devices = ffListCreate(sizeof(FFstrbuf));
struct mntent* device;
while((device = getmntent(mountsFile)))