diff --git a/src/detection/disk/disk_linux.c b/src/detection/disk/disk_linux.c index 7ab118038..ddb81c8bf 100644 --- a/src/detection/disk/disk_linux.c +++ b/src/detection/disk/disk_linux.c @@ -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(¤tDisk->mountpoint, "/") || ffStrbufEqualS(¤tDisk->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)))