Markus Armbruster a6c76285f2 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 <armbru@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1490895797-29094-4-git-send-email-armbru@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2017-04-03 17:11:39 +02:00
..
2017-03-14 15:09:56 +00:00
2016-02-04 17:01:04 +00:00
2017-02-27 16:15:29 +01:00
2016-02-04 17:01:04 +00:00
2017-03-21 10:25:01 +00:00
2016-06-03 08:23:26 +02:00
2017-02-27 16:15:29 +01:00
2016-02-04 17:01:04 +00:00
2014-09-16 08:07:05 +02:00
2017-02-27 16:15:29 +01:00
2017-02-27 16:21:23 +01:00
2016-03-01 08:19:07 +01:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2016-02-23 12:43:05 +00:00
2016-02-04 17:01:04 +00:00