mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 03:43:37 +08:00
Constification
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3529 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
741402f933
commit
51a6527174
4
hw/fdc.c
4
hw/fdc.c
@ -179,7 +179,7 @@ typedef struct fd_format_t {
|
|||||||
const unsigned char *str;
|
const unsigned char *str;
|
||||||
} fd_format_t;
|
} fd_format_t;
|
||||||
|
|
||||||
static fd_format_t fd_formats[] = {
|
static const fd_format_t fd_formats[] = {
|
||||||
/* First entry is default format */
|
/* First entry is default format */
|
||||||
/* 1.44 MB 3"1/2 floppy disks */
|
/* 1.44 MB 3"1/2 floppy disks */
|
||||||
{ FDRIVE_DRV_144, FDRIVE_DISK_144, 18, 80, 1, "1.44 MB 3\"1/2", },
|
{ FDRIVE_DRV_144, FDRIVE_DISK_144, 18, 80, 1, "1.44 MB 3\"1/2", },
|
||||||
@ -229,7 +229,7 @@ static fd_format_t fd_formats[] = {
|
|||||||
/* Revalidate a disk drive after a disk change */
|
/* Revalidate a disk drive after a disk change */
|
||||||
static void fd_revalidate (fdrive_t *drv)
|
static void fd_revalidate (fdrive_t *drv)
|
||||||
{
|
{
|
||||||
fd_format_t *parse;
|
const fd_format_t *parse;
|
||||||
int64_t nb_sectors, size;
|
int64_t nb_sectors, size;
|
||||||
int i, first_match, match;
|
int i, first_match, match;
|
||||||
int nb_heads, max_track, last_sect, ro;
|
int nb_heads, max_track, last_sect, ro;
|
||||||
|
Loading…
Reference in New Issue
Block a user