]> git.proxmox.com Git - mirror_qemu.git/commit - qga/commands-win32.c
qga: Replace an unreachable error by abort()
authorMarkus Armbruster <armbru@redhat.com>
Fri, 13 Nov 2020 08:26:23 +0000 (09:26 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 10 Dec 2020 16:16:44 +0000 (17:16 +0100)
commitac84b0fa2857383ca25e86970fb12a067e56f66c
treeb83d0cc3f8beb9d61fbae5890a2c2abce57b6852
parent99750d82e43e3825ded46b41828552d357f346bc
qga: Replace an unreachable error by abort()

check_suspend_mode()'s error message

    Parameter 'mode' expects GuestSuspendMode

makes no sense to users: GuestSuspendMode is a C enum.  Fortunately,
it is unreachable.  Replace it by abort().

Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201113082626.2725812-8-armbru@redhat.com>
qga/commands-win32.c