Revision 238431a9

b/net.c
840 840
/* magic number, but compiler will warn if too small */
841 841
#define NET_MAX_DESC 20
842 842

  
843
static struct {
843
static const struct {
844 844
    const char *type;
845 845
    net_client_init_func init;
846 846
    QemuOptDesc desc[NET_MAX_DESC];
b/qemu-option.c
470 470
    const char   *name;
471 471
    const char   *str;
472 472

  
473
    QemuOptDesc  *desc;
473
    const QemuOptDesc *desc;
474 474
    union {
475 475
        int      boolean;
476 476
        uint64_t uint;
......
565 565
int qemu_opt_set(QemuOpts *opts, const char *name, const char *value)
566 566
{
567 567
    QemuOpt *opt;
568
    QemuOptDesc *desc = opts->list->desc;
568
    const QemuOptDesc *desc = opts->list->desc;
569 569
    int i;
570 570

  
571 571
    for (i = 0; desc[i].name != NULL; i++) {
......
777 777
/* Validate parsed opts against descriptions where no
778 778
 * descriptions were provided in the QemuOptsList.
779 779
 */
780
int qemu_opts_validate(QemuOpts *opts, QemuOptDesc *desc)
780
int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
781 781
{
782 782
    QemuOpt *opt;
783 783

  
b/qemu-option.h
115 115
                  const char *name, const char *value);
116 116
const char *qemu_opts_id(QemuOpts *opts);
117 117
void qemu_opts_del(QemuOpts *opts);
118
int qemu_opts_validate(QemuOpts *opts, QemuOptDesc *desc);
118
int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc);
119 119
int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname);
120 120
QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char *firstname);
121 121

  

Also available in: Unified diff