]> Git Repo - qemu.git/commit - io/dns-resolver.c
io vnc sockets: Clean up SocketAddressKind switches
authorMarkus Armbruster <[email protected]>
Thu, 30 Mar 2017 17:43:11 +0000 (19:43 +0200)
committerMax Reitz <[email protected]>
Mon, 3 Apr 2017 15:11:39 +0000 (17:11 +0200)
commita6c76285f2e41535527a46edf4d158a2779545e1
tree2957f1ebb21317f39da1fa2d3e0cb19af585ad0b
parentd2e49aad7259af943b72be761ee5c18e14acd71a
io vnc sockets: Clean up SocketAddressKind switches

We have quite a few switches over SocketAddressKind.  Some have case
labels for all enumeration values, others rely on a default label.
Some abort when the value isn't a valid SocketAddressKind, others
report an error then.

Unify as follows.  Always provide case labels for all enumeration
values, to clarify intent.  Abort when the value isn't a valid
SocketAddressKind, because the program state is messed up then.

Improve a few error messages while there.

Signed-off-by: Markus Armbruster <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-id: 1490895797[email protected]
Signed-off-by: Max Reitz <[email protected]>
io/dns-resolver.c
ui/vnc.c
util/qemu-sockets.c
This page took 0.025954 seconds and 4 git commands to generate.