From b424c525cc44cd2a525e4e844b11ee816a1b2c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sat, 21 Jan 2023 14:04:17 +0800 Subject: [PATCH] Disk (Android): fix compiling errors --- src/detection/disk/disk_linux.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/detection/disk/disk_linux.c b/src/detection/disk/disk_linux.c index 423b660cd..dc3bc3f96 100644 --- a/src/detection/disk/disk_linux.c +++ b/src/detection/disk/disk_linux.c @@ -121,14 +121,14 @@ static void detectName(FFDisk* disk, const FFstrbuf* device) #ifdef __ANDROID__ -static void detectType(const FFlist* allDisks, FFDisk* currentDisk, const char* options) +static void detectType(FF_MAYBE_UNUSED const FFlist* allDisks, FFDisk* currentDisk, FF_MAYBE_UNUSED const char* options) { - if(ffStrbufEqualS(&disk->mountpoint, "/") || ffStrbufEqualS(&disk->mountpoint, "/storage/emulated")) - disk->type = FF_DISK_TYPE_REGULAR; - else if(ffStrbufStartsWithS(&disk->mountpoint, "/mnt/media_rw/")) - disk->type = FF_DISK_TYPE_EXTERNAL; + if(ffStrbufEqualS(¤tDisk->mountpoint, "/") || ffStrbufEqualS(¤tDisk->mountpoint, "/storage/emulated")) + currentDisk->type = FF_DISK_TYPE_REGULAR; + else if(ffStrbufStartsWithS(¤tDisk->mountpoint, "/mnt/media_rw/")) + currentDisk->type = FF_DISK_TYPE_EXTERNAL; else - disk->type = FF_DISK_TYPE_HIDDEN; + currentDisk->type = FF_DISK_TYPE_HIDDEN; } #else