]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix build break
authorDavid Allan <dallan@redhat.com>
Fri, 26 Mar 2010 17:05:19 +0000 (13:05 -0400)
committerDavid Allan <dallan@redhat.com>
Fri, 26 Mar 2010 17:11:20 +0000 (13:11 -0400)
* 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.

src/xen/xend_internal.c

index 87c26e59a94233c17104d4dcfef68af8bc844556..46e19cd5730021fcac457b3ad65cb93db2e57ce9 100644 (file)
@@ -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 &&