Allow const QemuOptDesc

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl 2010-02-21 16:01:30 +00:00
parent 4a0b59fe3b
commit 238431a9d8
3 changed files with 5 additions and 5 deletions

2
net.c
View file

@ -840,7 +840,7 @@ typedef int (*net_client_init_func)(QemuOpts *opts,
/* magic number, but compiler will warn if too small */
#define NET_MAX_DESC 20
static struct {
static const struct {
const char *type;
net_client_init_func init;
QemuOptDesc desc[NET_MAX_DESC];