libvirt/src/xenxs
Eric Blake 693d22d417 conf: don't modify cpu set string during parsing
None of the callers cared if str was updated to point to the next
byte after the parsed cpuset; simplifying this results in quite
a few code simplifications.  Additionally, virCPUDefParseXML was
strdup()'ing a malloc()'d string; avoiding a memory copy resulted
in less code.

* src/conf/domain_conf.h (virDomainCpuSetParse): Alter signature.
* src/conf/domain_conf.c (virDomainCpuSetParse): Don't modify str.
(virDomainVcpuPinDefParseXML, virDomainDefParseXML): Adjust
callers.
* src/conf/cpu_conf.c (virCPUDefParseXML): Likewise.
* src/xen/xend_internal.c (sexpr_to_xend_topology): Likewise.
* src/xen/xm_internal.c (xenXMDomainPinVcpu): Likewise.
* src/xenxs/xen_sxpr.c (xenParseSxpr): Likewise.
* src/xenxs/xen_xm.c (xenParseXM): Likewise.
2011-11-21 14:50:28 -07:00
..
xen_sxpr.c conf: don't modify cpu set string during parsing 2011-11-21 14:50:28 -07:00
xen_sxpr.h build: avoid ATTRIBUTE_UNUSED in headers 2011-07-14 07:51:30 -06:00
xen_xm.c conf: don't modify cpu set string during parsing 2011-11-21 14:50:28 -07:00
xen_xm.h Renamed functions in xenxs 2011-02-21 11:15:08 -07:00
xenxs_private.h Remove virConnectPtr from virRaiseErrorFull 2011-04-17 07:22:23 +02:00