1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-29 23:32:23 +00:00

Rename g_devices to g_fsdev_devices

This commit is contained in:
TuxSH 2018-05-09 17:26:30 +02:00
parent 6ff90d8d30
commit 04f9920cc3

View file

@ -75,11 +75,11 @@ typedef struct fsdev_fsdevice_t {
FATFS fatfs; FATFS fatfs;
} fsdev_fsdevice_t; } fsdev_fsdevice_t;
static fsdev_fsdevice_t g_devices[FF_VOLUMES] = { 0 }; static fsdev_fsdevice_t g_fsdev_devices[FF_VOLUMES] = { 0 };
const char *VolumeStr[FF_VOLUMES] = { 0 }; const char *VolumeStr[FF_VOLUMES] = { 0 };
int fsdev_mount_device(const char *name, unsigned int id) { int fsdev_mount_device(const char *name, unsigned int id) {
fsdev_fsdevice_t *device = &g_devices[id]; fsdev_fsdevice_t *device = &g_fsdev_devices[id];
FRESULT rc; FRESULT rc;
char drname[40]; char drname[40];
strcpy(drname, name); strcpy(drname, name);
@ -93,7 +93,7 @@ int fsdev_mount_device(const char *name, unsigned int id) {
errno = ENAMETOOLONG; errno = ENAMETOOLONG;
return -1; return -1;
} }
if (FindDevice(drname) != -1 || g_devices[id].setup) { if (FindDevice(drname) != -1 || g_fsdev_devices[id].setup) {
errno = EEXIST; /* Device already exists */ errno = EEXIST; /* Device already exists */
return -1; return -1;
} }