forked from len0rd/rockbox
fix warnings and errors in a41a001258
* volume_partition() wasn't defined for hosted targets * wrap the "special" volume stuff in HAVE_MULTIDRIVE Change-Id: Icbea256ab6438e1f7e45d361ed61724feec7ef0b
This commit is contained in:
parent
a41a001258
commit
57cd8cd712
2 changed files with 10 additions and 1 deletions
|
|
@ -169,9 +169,9 @@ static int refresh_data(struct info_data *info)
|
||||||
#ifdef HAVE_MULTIVOLUME
|
#ifdef HAVE_MULTIVOLUME
|
||||||
#ifdef HAVE_MULTIDRIVE
|
#ifdef HAVE_MULTIDRIVE
|
||||||
int max = -1;
|
int max = -1;
|
||||||
|
int special = 0;
|
||||||
#endif
|
#endif
|
||||||
int drive = 0;
|
int drive = 0;
|
||||||
int special = 0;
|
|
||||||
for (i = 0 ; CHECK_VOL(i) ; i++) {
|
for (i = 0 ; CHECK_VOL(i) ; i++) {
|
||||||
#endif
|
#endif
|
||||||
volume_size(IF_MV(i,) &info->size[i], &info->free[i]);
|
volume_size(IF_MV(i,) &info->size[i], &info->free[i]);
|
||||||
|
|
@ -196,9 +196,11 @@ static int refresh_data(struct info_data *info)
|
||||||
#endif
|
#endif
|
||||||
#if defined(HAVE_MULTIVOLUME) && (defined(HAVE_HOTSWAP) || defined(HAVE_HOTSWAP) || defined(HAVE_DIRCACHE) || defined(HAVE_BOOTDATA))
|
#if defined(HAVE_MULTIVOLUME) && (defined(HAVE_HOTSWAP) || defined(HAVE_HOTSWAP) || defined(HAVE_DIRCACHE) || defined(HAVE_BOOTDATA))
|
||||||
if (volume_partition(i) == -1) {
|
if (volume_partition(i) == -1) {
|
||||||
|
#ifdef HAVE_MULTIDRIVE
|
||||||
if (special)
|
if (special)
|
||||||
info->name[i] = LANG_DISK_NAME_MMC;
|
info->name[i] = LANG_DISK_NAME_MMC;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
info->name[i] = 0;
|
info->name[i] = 0;
|
||||||
break; /* ie stop when we run out of valid partitions */
|
break; /* ie stop when we run out of valid partitions */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -207,3 +207,10 @@ bool volume_present(int volume)
|
||||||
return hostfs_present(volume);
|
return hostfs_present(volume);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int volume_partition(int volume)
|
||||||
|
{
|
||||||
|
(void)volume;
|
||||||
|
/* Hosted only implement a single parition per "drive" */
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue