From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5810] Don't rely on the fact that MAX_FD is 2 (Herve Poussineau)
Date: Sat, 29 Nov 2008 16:42:40 +0000 [thread overview]
Message-ID: <E1L6Su0-0000Tu-OW@cvs.savannah.gnu.org> (raw)
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;
reply other threads:[~2008-11-29 16:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1L6Su0-0000Tu-OW@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).