forked from Imagelibrary/rtems
2011-02-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/fdisk.c: Reflect changes above.
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
Eliminate unnamed union (Non c99-compliant).
|
Eliminate unnamed union (Non c99-compliant).
|
||||||
* libblock/src/bdpart-create.c, libblock/src/bdpart-read.c,
|
* libblock/src/bdpart-create.c, libblock/src/bdpart-read.c,
|
||||||
libblock/src/bdpart-write.c: Reflect changes above.
|
libblock/src/bdpart-write.c: Reflect changes above.
|
||||||
|
* libmisc/shell/fdisk.c: Reflect changes above.
|
||||||
|
|
||||||
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-02-09 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
|||||||
@@ -132,8 +132,8 @@ static int rtems_bdpart_shell_main( int argc, char **argv)
|
|||||||
|
|
||||||
/* Default format */
|
/* Default format */
|
||||||
format.type = RTEMS_BDPART_FORMAT_MBR;
|
format.type = RTEMS_BDPART_FORMAT_MBR;
|
||||||
format.mbr.disk_id = 0;
|
format.u.mbr.disk_id = 0;
|
||||||
format.mbr.dos_compatibility = true;
|
format.u.mbr.dos_compatibility = true;
|
||||||
|
|
||||||
for (ai = 2; ai < argc; ++ai) {
|
for (ai = 2; ai < argc; ++ai) {
|
||||||
char *s = argv [ai];
|
char *s = argv [ai];
|
||||||
@@ -194,9 +194,9 @@ static int rtems_bdpart_shell_main( int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
case RTEMS_BDPART_SHELL_MBR:
|
case RTEMS_BDPART_SHELL_MBR:
|
||||||
if (strcmp( s, "dos") == 0) {
|
if (strcmp( s, "dos") == 0) {
|
||||||
format.mbr.dos_compatibility = true;
|
format.u.mbr.dos_compatibility = true;
|
||||||
} else if (strcmp( s, "nodos") == 0) {
|
} else if (strcmp( s, "nodos") == 0) {
|
||||||
format.mbr.dos_compatibility = false;
|
format.u.mbr.dos_compatibility = false;
|
||||||
} else {
|
} else {
|
||||||
RTEMS_BDPART_SHELL_ERROR( "unexpected option: %s", argv [ai]);
|
RTEMS_BDPART_SHELL_ERROR( "unexpected option: %s", argv [ai]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user