Commit 51a652717490eaa2d1d03cfa940126ac538f6bdc
1 parent
741402f9
Constification
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3529 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
hw/fdc.c
... | ... | @@ -179,7 +179,7 @@ typedef struct fd_format_t { |
179 | 179 | const unsigned char *str; |
180 | 180 | } fd_format_t; |
181 | 181 | |
182 | -static fd_format_t fd_formats[] = { | |
182 | +static const fd_format_t fd_formats[] = { | |
183 | 183 | /* First entry is default format */ |
184 | 184 | /* 1.44 MB 3"1/2 floppy disks */ |
185 | 185 | { 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[] = { |
229 | 229 | /* Revalidate a disk drive after a disk change */ |
230 | 230 | static void fd_revalidate (fdrive_t *drv) |
231 | 231 | { |
232 | - fd_format_t *parse; | |
232 | + const fd_format_t *parse; | |
233 | 233 | int64_t nb_sectors, size; |
234 | 234 | int i, first_match, match; |
235 | 235 | int nb_heads, max_track, last_sect, ro; | ... | ... |