diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-02-21 16:01:30 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-02-21 16:01:30 +0000 |
commit | 238431a9d8354c4dc3a7ff85e7ff31a7c8ce9b01 (patch) | |
tree | 4f42d725d2c755df7f6ed6707111e91ef006782e /qemu-option.c | |
parent | 4a0b59fe3b245f972a764d276df45ccd23e81972 (diff) |
Allow const QemuOptDesc
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-option.c')
-rw-r--r-- | qemu-option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-option.c b/qemu-option.c index a52a4c4a08..de40bffc7d 100644 --- a/qemu-option.c +++ b/qemu-option.c @@ -470,7 +470,7 @@ struct QemuOpt { const char *name; const char *str; - QemuOptDesc *desc; + const QemuOptDesc *desc; union { int boolean; uint64_t uint; @@ -565,7 +565,7 @@ static void qemu_opt_del(QemuOpt *opt) int qemu_opt_set(QemuOpts *opts, const char *name, const char *value) { QemuOpt *opt; - QemuOptDesc *desc = opts->list->desc; + const QemuOptDesc *desc = opts->list->desc; int i; for (i = 0; desc[i].name != NULL; i++) { @@ -777,7 +777,7 @@ QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char *fi /* Validate parsed opts against descriptions where no * descriptions were provided in the QemuOptsList. */ -int qemu_opts_validate(QemuOpts *opts, QemuOptDesc *desc) +int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc) { QemuOpt *opt; |