Received: from eggs.gnu.org ([2001:4830:134:3::10]:40480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPaj1-0005J3-Dw for qemu-devel@nongnu.org; Thu, 04 Sep 2014 13:21:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPaii-0006Cm-QJ for qemu-devel@nongnu.org; Thu, 04 Sep 2014 13:21:35 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44009 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPaii-0006CQ-HJ for qemu-devel@nongnu.org; Thu, 04 Sep 2014 13:21:16 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Thu, 4 Sep 2014 19:21:10 +0200 Message-Id: <1409851275-14941-3-git-send-email-afaerber@suse.de> In-Reply-To: <1409851275-14941-1-git-send-email-afaerber@suse.de> References: <1409851275-14941-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 2/7] machine: Clean up -machine handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Anthony Liguori Since commit c4090f8, -object options are no longer handled through object_set_property(), so clean up -object leftovers by renaming the function and dropping special-casing of qom-type and id properties. Cc: Paolo Bonzini Reviewed-by: Marcel Apfelbaum Signed-off-by: Andreas F=C3=A4rber --- vl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index a9fd207..9c9acf5 100644 --- a/vl.c +++ b/vl.c @@ -2841,15 +2841,15 @@ static void free_and_trace(gpointer mem) free(mem); } =20 -static int object_set_property(const char *name, const char *value, void= *opaque) +static int machine_set_property(const char *name, const char *value, + void *opaque) { Object *obj =3D OBJECT(opaque); StringInputVisitor *siv; Error *local_err =3D NULL; char *c, *qom_name; =20 - if (strcmp(name, "qom-type") =3D=3D 0 || strcmp(name, "id") =3D=3D 0= || - strcmp(name, "type") =3D=3D 0) { + if (strcmp(name, "type") =3D=3D 0) { return 0; } =20 @@ -4254,7 +4254,7 @@ int main(int argc, char **argv, char **envp) } =20 machine_opts =3D qemu_get_machine_opts(); - if (qemu_opt_foreach(machine_opts, object_set_property, current_mach= ine, + if (qemu_opt_foreach(machine_opts, machine_set_property, current_mac= hine, 1) < 0) { object_unref(OBJECT(current_machine)); exit(1); --=20 1.8.4.5