mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-15 09:53:44 -06:00
Given code like: T *var = calloc (n, sizeof (T)); Convert to this: T *var = calloc (n, sizeof (*var)); This first-cut change adjusts all malloc, calloc, and realloc statements. The only binary differences are in remote_internal.c (due to the bug fix) and in xmlrpc.c (due to factorization). * python/libvir.c: As above. * qemud/event.c: Likewise. * qemud/mdns.c: Likewise. * qemud/qemud.c: Likewise. * qemud/remote.c: Likewise. * src/bridge.c: Likewise. * src/buf.c: Likewise. * src/conf.c: Likewise. * src/hash.c: Likewise. * src/iptables.c: Likewise. * src/openvz_conf.c: Likewise. * src/qemu_conf.c: Likewise. * src/qemu_driver.c: Likewise. * src/test.c: Likewise. * src/xen_internal.c: Likewise. * src/xen_unified.c: Likewise. * src/xm_internal.c: Likewise. * src/xml.c: Likewise. * tests/qemuxml2argvtest.c: Likewise. * src/xmlrpc.c (xmlRpcValuePtr): Likewise, and minor factorization. * src/remote_internal.c (remoteAuthMakeCredentials): Use the right type when allocating space for an array of cred _pointers_. |
||
---|---|---|
.. | ||
confdata | ||
nodeinfodata | ||
qemuxml2argvdata | ||
sexpr2xmldata | ||
virshdata | ||
xencapsdata | ||
xmconfigdata | ||
xml2sexprdata | ||
.cvsignore | ||
conftest.c | ||
daemon-conf | ||
int-overflow | ||
Makefile.am | ||
nodeinfotest.c | ||
qemuxml2argvtest.c | ||
qemuxml2xmltest.c | ||
reconnect.c | ||
sexpr2xmltest.c | ||
test_conf.sh | ||
test_xmlrpc.sh | ||
testutils.c | ||
testutils.h | ||
virshtest.c | ||
xencapstest.c | ||
xmconfigtest.c | ||
xml2sexprtest.c | ||
xmlrpcserver.py | ||
xmlrpctest.c |