From: Blue Swirl Date: Sat, 27 Mar 2010 21:33:46 +0000 (+0000) Subject: Fix driftfix option X-Git-Tag: v0.13.0-rc0~939 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e4c0336e2b2ebc804d2e3d6432025a1e5193f13;p=thirdparty%2Fqemu.git Fix driftfix option Based on patch by Zachary Amsden. Signed-off-by: Blue Swirl --- diff --git a/vl.c b/vl.c index ca568b2bdee..8a73235aded 100644 --- a/vl.c +++ b/vl.c @@ -516,12 +516,12 @@ static void configure_rtc(QemuOpts *opts) exit(1); } } -#ifdef CONFIG_TARGET_I386 +#ifdef TARGET_I386 value = qemu_opt_get(opts, "driftfix"); if (value) { - if (!strcmp(buf, "slew")) { + if (!strcmp(value, "slew")) { rtc_td_hack = 1; - } else if (!strcmp(buf, "none")) { + } else if (!strcmp(value, "none")) { rtc_td_hack = 0; } else { fprintf(stderr, "qemu: invalid option value '%s'\n", value);