* [Qemu-devel] [5810] Don't rely on the fact that MAX_FD is 2 (Herve Poussineau)
@ 2008-11-29 16:42 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-11-29 16:42 UTC (permalink / raw)
To: qemu-devel
Revision: 5810
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5810
Author: blueswir1
Date: 2008-11-29 16:42:40 +0000 (Sat, 29 Nov 2008)
Log Message:
-----------
Don't rely on the fact that MAX_FD is 2 (Herve Poussineau)
Modified Paths:
--------------
trunk/hw/sun4m.c
Modified: trunk/hw/sun4m.c
===================================================================
--- trunk/hw/sun4m.c 2008-11-29 14:05:16 UTC (rev 5809)
+++ trunk/hw/sun4m.c 2008-11-29 16:42:40 UTC (rev 5810)
@@ -1589,7 +1589,7 @@
if (hwdef->fd_base != (target_phys_addr_t)-1) {
/* there is zero or one floppy drive */
- fd[1] = fd[0] = NULL;
+ memset(fd, 0, sizeof(fd));
drive_index = drive_get_index(IF_FLOPPY, 0, 0);
if (drive_index != -1)
fd[0] = drives_table[drive_index].bdrv;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-29 16:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-29 16:42 [Qemu-devel] [5810] Don't rely on the fact that MAX_FD is 2 (Herve Poussineau) Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).