Replace the assert(0) by abort() since the intention in libxl is that
asserts are always compiled in. This patch makes its clear and removes
the need to deal with asserts been compiled out.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
device->backend_kind = LIBXL__DEVICE_KIND_NONE;
break;
default:
- assert(0); /* can't really happen. */
- break;
+ abort(); /* can't really happen. */
}
device->devid = usbctrl->devid;
device->domid = domid;
flexarray_append_pair(qmp_args, "p3", GCSPRINTF("%d", usbctrl->ports));
break;
default:
- assert(0); /* Should not be possible. */
- break;
+ abort(); /* Should not be possible. */
}
flexarray_append_pair(qmp_args, "id",