mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-08 19:54:38 +00:00
change emile_scsi_get_dev() API
This commit is contained in:
parent
0804f9981e
commit
cf1f03dd19
@ -342,7 +342,7 @@ int main(int argc, char** argv)
|
|||||||
int partition;
|
int partition;
|
||||||
char *disk_name;
|
char *disk_name;
|
||||||
char buffer[16];
|
char buffer[16];
|
||||||
char *driver;
|
int driver;
|
||||||
int action = ACTION_NONE;
|
int action = ACTION_NONE;
|
||||||
char *dev_name = NULL;
|
char *dev_name = NULL;
|
||||||
char *appledriver = NULL;
|
char *appledriver = NULL;
|
||||||
@ -422,7 +422,7 @@ int main(int argc, char** argv)
|
|||||||
if ( (ret == -1) && (optind < argc))
|
if ( (ret == -1) && (optind < argc))
|
||||||
{
|
{
|
||||||
disk_name = dev_name;
|
disk_name = dev_name;
|
||||||
driver = NULL;
|
driver = 0;
|
||||||
disk = 0;
|
disk = 0;
|
||||||
partition = atoi(argv[optind++]);
|
partition = atoi(argv[optind++]);
|
||||||
}
|
}
|
||||||
@ -433,7 +433,7 @@ int main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf(buffer, "%s%c", driver, 'a' + disk);
|
emile_get_dev_name(buffer, driver, disk, 0);
|
||||||
disk_name = buffer;
|
disk_name = buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user