From: David Allan Date: Fri, 26 Mar 2010 17:05:19 +0000 (-0400) Subject: Fix build break X-Git-Tag: v0.8.0~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67253251c576cf29edd7f45354c4e6664b8f5178;p=thirdparty%2Flibvirt.git Fix build break * Add types to switch; the switch is only exectuted for known types because of a preceding conditional, so this fix is merely to placate the compiler. --- diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c index 87c26e59a9..46e19cd573 100644 --- a/src/xen/xend_internal.c +++ b/src/xen/xend_internal.c @@ -5719,6 +5719,15 @@ xenDaemonFormatSxprNet(virConnectPtr conn, if (def->data.ethernet.ipaddr != NULL) virBufferVSprintf(buf, "(ip '%s')", def->data.ethernet.ipaddr); break; + + case VIR_DOMAIN_NET_TYPE_USER: + case VIR_DOMAIN_NET_TYPE_SERVER: + case VIR_DOMAIN_NET_TYPE_CLIENT: + case VIR_DOMAIN_NET_TYPE_MCAST: + case VIR_DOMAIN_NET_TYPE_INTERNAL: + case VIR_DOMAIN_NET_TYPE_DIRECT: + case VIR_DOMAIN_NET_TYPE_LAST: + break; } if (def->ifname != NULL &&