]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpc: Add typedef for the anonymous enum used for authentication methods
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Thu, 21 Dec 2017 14:28:59 +0000 (15:28 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 4 Jan 2018 11:55:31 +0000 (06:55 -0500)
commit6e7e553180f76f144b6eb1cb1384d54bc04cd332
tree479de5563955375b9f05e07e5d0727c65e1b378d
parented88b37fb4404a337c3f42bc0e96a1ba5ffbed46
rpc: Add typedef for the anonymous enum used for authentication methods

Add typedef for the anonymous enum used for the authentication methods
and remove the default case. This allows the usage of the type in a
switch statement and taking advantage of the compilers feature to
detect uncovered cases.

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Stefan Zimmermann <stzi@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
daemon/remote.c
src/rpc/virnetserverservice.h