Skip to content

Commit b424c52

Browse files
committed
Disk (Android): fix compiling errors
1 parent f640102 commit b424c52

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/detection/disk/disk_linux.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ static void detectName(FFDisk* disk, const FFstrbuf* device)
121121

122122
#ifdef __ANDROID__
123123

124-
static void detectType(const FFlist* allDisks, FFDisk* currentDisk, const char* options)
124+
static void detectType(FF_MAYBE_UNUSED const FFlist* allDisks, FFDisk* currentDisk, FF_MAYBE_UNUSED const char* options)
125125
{
126-
if(ffStrbufEqualS(&disk->mountpoint, "/") || ffStrbufEqualS(&disk->mountpoint, "/storage/emulated"))
127-
disk->type = FF_DISK_TYPE_REGULAR;
128-
else if(ffStrbufStartsWithS(&disk->mountpoint, "/mnt/media_rw/"))
129-
disk->type = FF_DISK_TYPE_EXTERNAL;
126+
if(ffStrbufEqualS(&currentDisk->mountpoint, "/") || ffStrbufEqualS(&currentDisk->mountpoint, "/storage/emulated"))
127+
currentDisk->type = FF_DISK_TYPE_REGULAR;
128+
else if(ffStrbufStartsWithS(&currentDisk->mountpoint, "/mnt/media_rw/"))
129+
currentDisk->type = FF_DISK_TYPE_EXTERNAL;
130130
else
131-
disk->type = FF_DISK_TYPE_HIDDEN;
131+
currentDisk->type = FF_DISK_TYPE_HIDDEN;
132132
}
133133

134134
#else

0 commit comments

Comments
 (0)